]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Staging: rtl8192e: pointer math bug in rtllib_rx_DELBA()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 19 Jul 2015 10:52:33 +0000 (13:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:05:21 +0000 (21:05 -0700)
commitd0dcaa8d4eff40b2999d5265f2218c29e82e24cc
tree9098b5b158311f57aae13430cb56ded084c6c695
parent2ee4c3dc55f6b83934cdf53c8563f5667d91ff91
Staging: rtl8192e: pointer math bug in rtllib_rx_DELBA()

The pointer math here was totally wrong so we were reading nonsense
information from beyond the end of the buffer.  It could lead to an oops
if that memory wasn't mapped.

The "pReasonCode" pointer is assigned but never used so I deleted it.

With-Fix-From: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_BAProc.c