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-28 10:11:32 -04:00
2007-07-27 09:20:20 -04:00
2007-07-26 09:42:43 -04:00
2007-07-20 21:29:33 +01:00
2007-07-28 10:58:28 -04:00
2007-07-19 10:04:50 -07:00
2007-07-19 10:04:50 -07:00
2007-07-22 11:36:49 -07:00
2007-07-27 09:14:22 -04:00
2007-07-20 10:11:58 +09:00
2007-07-24 18:38:46 -04:00
2007-07-22 11:36:49 -07:00
2007-07-21 08:57:40 -05:00
2007-07-18 11:17:57 -05:00
2007-07-27 11:41:40 -04:00
2007-07-18 11:17:57 -05:00
2007-07-20 19:35:38 -05:00
2007-07-19 10:04:50 -07:00
2007-07-19 10:04:50 -07:00
2007-07-27 09:12:54 -04:00
2007-07-22 11:36:49 -07:00
2007-07-19 10:04:50 -07:00
2007-07-27 09:12:05 -04:00
2007-07-21 17:49:16 -07:00
2007-07-18 11:17:57 -05:00
2007-07-20 08:24:49 -07:00
2007-07-19 10:04:50 -07:00
2007-07-19 10:04:50 -07:00
2007-07-19 10:04:50 -07:00
2007-07-21 17:49:16 -07:00
2007-07-19 12:06:26 -05:00
2007-07-28 10:00:28 -04:00
2007-07-20 10:11:58 +09:00
2007-07-18 11:16:32 -05:00
2007-07-21 08:58:23 -05:00
2007-07-20 10:11:58 +09:00
2007-07-18 11:16:32 -05:00
2007-07-21 08:58:23 -05:00
2007-07-20 10:11:58 +09:00
2007-07-18 11:16:46 -05:00
2007-07-22 11:36:49 -07:00
2007-07-18 11:16:32 -05:00
2007-07-19 10:04:50 -07:00
2007-07-18 11:16:38 -05:00
2007-07-18 11:17:57 -05:00