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
..
2007-07-21 18:37:10 -07:00
2007-07-21 17:49:16 -07:00
2007-07-21 18:37:12 -07:00
2007-07-20 08:24:49 -07:00
2007-07-21 18:37:12 -07:00
2007-07-21 17:49:17 -07:00
2007-07-22 11:13:59 -07:00
2007-07-21 17:49:15 -07:00
2007-07-21 17:49:14 -07:00
2007-07-22 02:28:06 -04:00
2007-07-20 14:25:51 +10:00
2007-07-21 17:49:17 -07:00
2007-07-20 13:39:59 +10:00