git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
214ac9a
)
net/mac80211: Correct size given to memset
author
Julia Lawall
<julia@diku.dk>
Wed, 9 Dec 2009 19:25:59 +0000
(20:25 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Thu, 10 Dec 2009 21:09:52 +0000
(16:09 -0500)
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: John W. Linville <linville@tuxdriver.com>
No differences found