From: Dan Carpenter Date: Fri, 7 Dec 2012 10:56:22 +0000 (+0300) Subject: [SCSI] mpt3sas: cut and paste bug storing trigger mpi X-Git-Tag: v3.9-rc1~45^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66331e8cf5cd8b387891e3ec0ef1d95e224ee976;p=pandora-kernel.git [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 Acked-by: "Sreekanth Reddy" Signed-off-by: James Bottomley --- Reading git-diff-tree failed