linux-sg2042/drivers/scsi/mpt3sas
Dan Carpenter 66331e8cf5 [SCSI] mpt3sas: cut and paste bug storing trigger mpi
ioc->diag_trigger_mpi is an SL_WH_MPI_TRIGGERS_T struct.

There is a cut and paste error here and SL_WH_EVENT_TRIGGERS_T is used
instead of SL_WH_MPI_TRIGGERS_T.  Since the SL_WH_EVENT_TRIGGERS_T is
smaller than SL_WH_MPI_TRIGGERS_T, it means we only clear part of the
buffer.

I've changed it to use sizeof(ioc->diag_trigger_mpi) which is a bit
simpler.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: "Sreekanth Reddy" <Sreekanth.reddy@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2013-01-29 13:57:34 +11:00
..
mpi
Kconfig
Makefile
mpt3sas_base.c
mpt3sas_base.h
mpt3sas_config.c
mpt3sas_ctl.c [SCSI] mpt3sas: cut and paste bug storing trigger mpi 2013-01-29 13:57:34 +11:00
mpt3sas_ctl.h
mpt3sas_debug.h
mpt3sas_scsih.c
mpt3sas_transport.c
mpt3sas_trigger_diag.c
mpt3sas_trigger_diag.h