kernel_optimize_test/drivers/scsi/libsas
Jesper Juhl 92631fa4d0 [SCSI] libsas: Fix potential NULL dereference in sas_smp_get_phy_events()
In sas_smp_get_phy_events() we never test if the call to
alloc_smp_req(RPEL_REQ_SIZE) succeeds or fails. That means we run
the risk of dereferencing a NULL pointer if it does fail. Far
better to test if we got NULL back and in that case return -ENOMEM
just as we already do for the other memory allocation in that
function.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2007-07-28 10:58:28 -04:00
..
Kconfig [SCSI] libsas: make ATA functions selectable by a config option 2007-07-22 13:23:13 -05:00
Makefile [SCSI] libsas: make ATA functions selectable by a config option 2007-07-22 13:23:13 -05:00
sas_ata.c [SCSI] libsas: Remove PCI dependencies 2007-07-26 09:42:43 -04:00
sas_discover.c [SCSI] libsas: Remove PCI dependencies 2007-07-26 09:42:43 -04:00
sas_dump.c [SCSI] libsas: Remove PCI dependencies 2007-07-26 09:42:43 -04:00
sas_dump.h [SCSI] aic94xx: new driver 2006-08-29 09:52:29 -05:00
sas_event.c [SCSI] libsas: Add SAS_HA state flags to avoid queueing events while unloading 2007-01-13 16:21:53 -06:00
sas_expander.c [SCSI] libsas: Fix potential NULL dereference in sas_smp_get_phy_events() 2007-07-28 10:58:28 -04:00
sas_init.c Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2007-07-22 11:36:49 -07:00
sas_internal.h [SCSI] sas_ata: Implement sas_task_abort for ATA devices 2007-07-18 11:16:03 -05:00
sas_phy.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
sas_port.c [SCSI] libsas: Fix incorrect sas_port deformation in sas_form_port 2007-01-27 10:04:58 -06:00
sas_scsi_host.c [SCSI] sas_ata: Implement sas_task_abort for ATA devices 2007-07-18 11:16:03 -05:00