]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtlwifi: rtl8192cu: Fix memset/memcpy using sizeof(ptr) not sizeof(*ptr)
authorJoe Perches <joe@perches.com>
Mon, 9 May 2011 19:51:57 +0000 (12:51 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:51 +0000 (15:54 -0400)
commit73f743670d36ddd61247d709711227b0e2e1a497
tree5d68ff675ea5c7c8d1e721b368997b06a6917278
parent8c12c7b0efce09b87e67d05332bdcb86ea83f65a
rtlwifi: rtl8192cu: Fix memset/memcpy using sizeof(ptr) not sizeof(*ptr)

Found via coccinelle script

@@
type T;
T* ptr;
expression E1;
@@
* memset(E1, 0, sizeof(ptr));

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c