diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index d8882b0a1338..c2dd322691d1 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -6001,13 +6001,12 @@ mpt_findImVolumes(MPT_ADAPTER *ioc) | |||
6001 | if (mpt_config(ioc, &cfg) != 0) | 6001 | if (mpt_config(ioc, &cfg) != 0) |
6002 | goto out; | 6002 | goto out; |
6003 | 6003 | ||
6004 | mem = kmalloc(iocpage2sz, GFP_KERNEL); | 6004 | mem = kmemdup(pIoc2, iocpage2sz, GFP_KERNEL); |
6005 | if (!mem) { | 6005 | if (!mem) { |
6006 | rc = -ENOMEM; | 6006 | rc = -ENOMEM; |
6007 | goto out; | 6007 | goto out; |
6008 | } | 6008 | } |
6009 | 6009 | ||
6010 | memcpy(mem, (u8 *)pIoc2, iocpage2sz); | ||
6011 | ioc->raid_data.pIocPg2 = (IOCPage2_t *) mem; | 6010 | ioc->raid_data.pIocPg2 = (IOCPage2_t *) mem; |
6012 | 6011 | ||
6013 | mpt_read_ioc_pg_3(ioc); | 6012 | mpt_read_ioc_pg_3(ioc); |