ipr: Fix possible error path oops during initialization
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 26 Mar 2015 16:23:55 +0000 (11:23 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 9 Apr 2015 20:44:22 +0000 (13:44 -0700)
commita65e8f128eca1efafeb16039650ae36b25cfd0dc
treedb537414a94a8811aa1c89083f847e334edd6868
parent2796ca5e51737ed0be8ebb6cf73fd56af05da0a7
ipr: Fix possible error path oops during initialization

Fixes a possible oops during adapter initialization in some
memory allocation failure error paths scenarios.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Reviewed-by: Daniel Kreling <kreling@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/ipr.c