ipr: Fix error return code in ipr_probe_ioa()
authorWei Yongjun <weiyj.lk@gmail.com>
Fri, 29 Jul 2016 16:00:45 +0000 (16:00 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 2 Aug 2016 05:19:18 +0000 (01:19 -0400)
commitc8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1
tree91441ce7f43db893e0dc086ca1d318ebfc92578b
parenta561a8ea837182e2ac2c699e64a33b76f29d1668
ipr: Fix error return code in ipr_probe_ioa()

Fix to return error code -ENOMEM from the workqueue alloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.c