linux/drivers/s390
Julia Lawall 83e56d0b23 [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>
2009-12-18 17:43:32 +01:00
..
block [S390] dasd: PTR_ERR return of wrong pointer in 2009-12-18 17:43:31 +01:00
char [S390] tape: Add pr_fmt() macro to all tape source files 2009-12-18 17:43:32 +01:00
cio [S390] drivers: Correct size given to memset 2009-12-18 17:43:32 +01:00
crypto [S390] zcrypt: remove BKL 2009-12-07 12:51:39 +01:00
kvm [S390] kvm: use console_initcall() to initialize s390 virtio console 2009-09-11 10:29:52 +02:00
net const: constify remaining dev_pm_ops 2009-12-15 08:53:25 -08:00
scsi [SCSI] zfcp: Remove flag ZFCP_STATUS_FSFREQ_TMFUNCNOTSUPP 2009-12-04 12:02:18 -06:00
Makefile [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00