diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 6837a8ef9371..3e57b61ca446 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -5945,8 +5945,10 @@ mpt_findImVolumes(MPT_ADAPTER *ioc) | |||
5945 | goto out; | 5945 | goto out; |
5946 | 5946 | ||
5947 | mem = kmalloc(iocpage2sz, GFP_KERNEL); | 5947 | mem = kmalloc(iocpage2sz, GFP_KERNEL); |
5948 | if (!mem) | 5948 | if (!mem) { |
5949 | rc = -ENOMEM; | ||
5949 | goto out; | 5950 | goto out; |
5951 | } | ||
5950 | 5952 | ||
5951 | memcpy(mem, (u8 *)pIoc2, iocpage2sz); | 5953 | memcpy(mem, (u8 *)pIoc2, iocpage2sz); |
5952 | ioc->raid_data.pIocPg2 = (IOCPage2_t *) mem; | 5954 | ioc->raid_data.pIocPg2 = (IOCPage2_t *) mem; |