]> git.baikalelectronics.ru Git - kernel.git/commit
target/pscsi: fix return value check
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 25 Oct 2013 13:53:33 +0000 (21:53 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 25 Oct 2013 17:42:09 +0000 (10:42 -0700)
commit58adb2a6cef5852727f3a022f6caf87959b14d20
treea431bf2d95dcc04f3a09c1f3dfe956ceaf1527ee
parent3af458e0c6b1af8ff1a52f3bad275ae5b48435d5
target/pscsi: fix return value check

In case of error, the function scsi_host_lookup() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pscsi.c