linux/drivers/scsi/megaraid
adam radford f575c5d3eb [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>
2011-10-20 10:18:17 -05:00
..
Kconfig.megaraid
Makefile
mbox_defs.h Fix common misspellings 2011-03-31 11:26:23 -03:00
mega_common.h
megaraid_ioctl.h
megaraid_mbox.c [SCSI] remove cmd->serial_number litter 2011-05-01 10:22:40 -05:00
megaraid_mbox.h
megaraid_mm.c
megaraid_mm.h
megaraid_sas.h [SCSI] megaraid_sas: Changelog and version update 2011-10-16 11:27:02 -05:00
megaraid_sas_base.c [SCSI] megaraid_sas: Fix instance access in megasas_reset_timer 2011-10-20 10:18:17 -05:00
megaraid_sas_fp.c [SCSI] megaraid_sas: Add support for MegaRAID 9360/9380 12GB/s controllers 2011-10-16 11:21:08 -05:00
megaraid_sas_fusion.c [SCSI] megaraid_sas: Add multiple MSI-X vector/multiple reply queue support 2011-10-16 11:21:36 -05:00
megaraid_sas_fusion.h [SCSI] megaraid_sas: Add multiple MSI-X vector/multiple reply queue support 2011-10-16 11:21:36 -05:00