diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-10-25 21:53:33 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-13 12:05:32 +0900 |
commit | f21abb623ac78e2e9248057282d0de4e9b82e616 (patch) | |
tree | c0d9cbfa45489933414f7ee1ef188d6b4f7e37f0 /drivers/vhost | |
parent | ed840bec21c6f2f99ca34e974a5905e4f2116c1b (diff) | |
download | linux-3.10-f21abb623ac78e2e9248057282d0de4e9b82e616.tar.gz linux-3.10-f21abb623ac78e2e9248057282d0de4e9b82e616.tar.bz2 linux-3.10-f21abb623ac78e2e9248057282d0de4e9b82e616.zip |
target/pscsi: fix return value check
commit 58932e96e438cd78f75e765d7b87ef39d3533d15 upstream.
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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions