Staging: rtl8192u: fix some memory corruption
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Apr 2012 20:37:31 +0000 (23:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Apr 2012 23:58:16 +0000 (16:58 -0700)
commitf7738eda211091d8caf612b2bc1bac2fb52e48c6
tree74f8000ebd2a6e5df99c36db185a6003313d3a51
parented2cb4f3b5ed96e4d10e054f981bbe58d0e3508e
Staging: rtl8192u: fix some memory corruption

When we received a command we incremented a stat counter depending on
the type of message.  The problem is there were 8 types of commands but
there were only 4 counters allocated so it corrupted memory past the
end of the rxcmdpkt[] array.

The fix is just to remove the counters because they aren't used.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
ACKed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r819xU_cmdpkt.c
This page took 0.030136 seconds and 5 git commands to generate.