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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:25:08 +0000 (12:25 -0800)
commit3374c69d140081ef9973d12fc08498e046365035
treefc391d1432c310dd240555bb15caa6d8c391e918
parentcb38ff921c97c44d8a215cd3a30c0242379abbf6
iser-target: fix error return code in isert_create_device_ib_res()

commit 94a7111043d99819cd0a72d9b3174c7054adb2a0 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c