From: Dan Carpenter Date: Tue, 17 Apr 2012 20:37:31 +0000 (+0300) Subject: Staging: rtl8192u: fix some memory corruption X-Git-Tag: v3.5-rc1~145^2~229^2~160 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7738eda211091d8caf612b2bc1bac2fb52e48c6;p=pandora-kernel.git 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 ACKed-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed