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-04-01 10:10:04 -05:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2007-05-06 09:33:11 -05:00
2006-08-06 15:59:26 -05:00
2006-11-15 16:41:27 -06:00
2006-09-12 17:12:31 -05:00
2007-05-24 09:14:41 -05:00
2007-05-31 17:30:04 -04:00
2007-07-21 17:49:16 -07:00
2006-09-12 17:12:31 -05:00
2006-11-30 05:24:39 +01:00
2007-07-20 08:24:49 -07:00
2007-05-24 09:13:25 -05:00
2007-04-17 18:15:04 -04:00
2007-02-09 09:14:07 -08:00
2007-07-21 17:49:16 -07:00
2007-07-18 11:16:32 -05:00
2007-07-21 08:58:23 -05:00
2007-07-18 11:16:32 -05:00
2007-05-28 09:08:32 -05:00
2007-07-14 19:12:15 -05:00
2007-07-18 11:16:32 -05:00
2006-03-23 07:38:09 -08:00
2007-05-31 17:30:04 -04:00
2006-11-15 16:43:50 -06:00
2007-07-18 11:16:38 -05:00