iser-target: fix error return code in isert_create_device_ib_res()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 29 Oct 2013 01:56:34 +0000 (09:56 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Dec 2013 19:54:47 +0000 (11:54 -0800)
commit94a7111043d99819cd0a72d9b3174c7054adb2a0
tree7f176f5808bd9b75d408b1709f0f5f4932a5a4c9
parent4454b66cb67f14c33cd70ddcf0ff4985b26324b7
iser-target: fix error return code in isert_create_device_ib_res()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: <stable@vger.kernel.org> #3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c