From: Wei Yongjun Date: Fri, 25 Oct 2013 13:53:33 +0000 (+0800) Subject: target/pscsi: fix return value check X-Git-Tag: v3.12-rc7~5^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58932e96e438cd78f75e765d7b87ef39d3533d15;p=pandora-kernel.git 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 Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed