diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-18 17:43:22 +0100 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2009-12-18 17:43:32 +0100 |
commit | 83e56d0b23f91b70a7e708ce0979a57b6c6a1507 (patch) | |
tree | bcfd461199eb4c551675ecd5bf5a9822231c482b /fs/gfs2/glock.h | |
parent | bb509912481214cf6ad1181c968295c62ff1ad9e (diff) | |
download | op-kernel-dev-83e56d0b23f91b70a7e708ce0979a57b6c6a1507.zip op-kernel-dev-83e56d0b23f91b70a7e708ce0979a57b6c6a1507.tar.gz |
[S390] drivers: 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: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'fs/gfs2/glock.h')
0 files changed, 0 insertions, 0 deletions