linux/drivers/scsi/mpt2sas
Julia Lawall 96a99501d6 [SCSI] mpt2sas: take size of pointed value, not pointer
Sizeof a pointer-typed expression returns the size of the pointer, not that
of the pointed data.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *e;
type T;
identifier f;
@@

f(...,(T)e,...,
-sizeof(e)
+sizeof(*e)
,...)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-09-22 15:13:12 +04:00
..
mpi [SCSI] mpt2sas MPI next revision header update 2011-06-29 16:13:50 -05:00
Kconfig [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
Makefile
mpt2sas_base.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_base.h [SCSI] mpt2sas: Bump driver version 09.100.00.01 2011-09-22 15:09:26 +04:00
mpt2sas_config.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mpt2sas_ctl.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_ctl.h [SCSI] mpt2sas : WarpDrive New product SSS6200 support added 2011-05-01 10:36:54 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00
mpt2sas_scsih.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_transport.c [SCSI] mpt2sas: take size of pointed value, not pointer 2011-09-22 15:13:12 +04:00