summaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion/Kconfig
diff options
context:
space:
mode:
authorJesper Juhl2007-07-28 01:13:33 +0200
committerJames Bottomley2007-07-28 16:58:28 +0200
commit92631fa4d0afa64b82144eab714fbf2f4049dabe (patch)
tree9d885b3d23c72241dff4b5bbaf2dca88b4c05ea3 /drivers/message/fusion/Kconfig
parent[SCSI] bsg: Fix build for CONFIG_BLOCK=n (diff)
downloadkernel-qcow2-linux-92631fa4d0afa64b82144eab714fbf2f4049dabe.tar.gz
kernel-qcow2-linux-92631fa4d0afa64b82144eab714fbf2f4049dabe.tar.xz
kernel-qcow2-linux-92631fa4d0afa64b82144eab714fbf2f4049dabe.zip
[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>
Diffstat (limited to 'drivers/message/fusion/Kconfig')
0 files changed, 0 insertions, 0 deletions