diff options
author | 2009-12-09 20:25:04 +0100 | |
---|---|---|
committer | 2009-12-23 11:27:48 -0800 | |
commit | 4068fe8b2aa3e12643db0ad5dd4bcf6755a7320f (patch) | |
tree | 2d31d9b263851df83bb5733e3ee0f453d7755da5 /kernel/range.c | |
parent | staging: rtl8192su: add USB VID/PID for HWNUm-300 (diff) | |
download | wireguard-linux-4068fe8b2aa3e12643db0ad5dd4bcf6755a7320f.tar.xz wireguard-linux-4068fe8b2aa3e12643db0ad5dd4bcf6755a7320f.zip |
Staging: wlan-ng: fix Correct size given to memset
Memset should be given the size of the structure, not the size of the pointer.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
type T;
T *x;
expression E;
@@
memset(x, E, sizeof(
+ *
x))
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/range.c')
0 files changed, 0 insertions, 0 deletions