summaryrefslogtreecommitdiff
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authoradam radford <aradford@gmail.com>2011-10-14 03:01:12 +0400
committerJames Bottomley <JBottomley@Parallels.com>2011-10-20 19:18:17 +0400
commitf575c5d3ebdca3b0482847d8fcba971767754a9e (patch)
tree8f238a30ea2a4d0a9300466e60a8bae85280fd6d /drivers/scsi/ipr.h
parentfba63097b8614a4a158226c02eec0318f41cd24f (diff)
downloadlinux-f575c5d3ebdca3b0482847d8fcba971767754a9e.tar.xz
[SCSI] megaraid_sas: Fix instance access in megasas_reset_timer
The following patch for megaraid_sas will fix a potential bad pointer access in megasas_reset_timer(), when a MegaRAID 9265/9285 or 9360/9380 gets a timeout. megasas_build_io_fusion() sets SCp.ptr to be a struct megasas_cmd_fusion *, but then megasas_reset_timer() was casting SCp.ptr to be a struct megasas_cmd *, then trying to access cmd->instance, which is invalid. Just loading instance from scmd->device->host->hostdata in megasas_reset_timer() fixes the issue. Signed-off-by: Adam Radford <aradford@gmail.com> Cc: stable@kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
0 files changed, 0 insertions, 0 deletions