mvsas: fix error return code in mvs_task_prep()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 31 Oct 2016 15:04:10 +0000 (15:04 +0000)
committerTejun Heo <tj@kernel.org>
Mon, 31 Oct 2016 16:28:08 +0000 (10:28 -0600)
commit18eddaedc940a49425364df98abda218ce1e771c
tree224fc5a5e32e8b6f749fa44218786a76883a48c6
parent0ce57f8af1782fd12d3a81872a4ab97244989802
mvsas: fix error return code in mvs_task_prep()

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/scsi/mvsas/mv_sas.c