1
linux/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
sas_event.c
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
sas_port.c
sas_scsi_host.c [SCSI] sas_ata: Implement sas_task_abort for ATA devices 2007-07-18 11:16:03 -05:00