aboutsummaryrefslogtreecommitdiff
path: root/include/asm-mips/sibyte/sb1250_syncser.h
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2007-07-28 01:13:33 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-28 10:58:28 -0400
commit92631fa4d0afa64b82144eab714fbf2f4049dabe (patch)
tree9d885b3d23c72241dff4b5bbaf2dca88b4c05ea3 /include/asm-mips/sibyte/sb1250_syncser.h
parent99d4d0a9f251a87e0710c6f1fb46ac0d4bce12cb (diff)
[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 'include/asm-mips/sibyte/sb1250_syncser.h')
0 files changed, 0 insertions, 0 deletions