Re: [PATCH] target/pscsi: fix return value check

2013-10-25 Thread Nicholas A. Bellinger
Hi Wei, On Fri, 2013-10-25 at 21:53 +0800, Wei Yongjun wrote: > From: Wei Yongjun > > 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 > --- A

[PATCH] target/pscsi: fix return value check

2013-10-25 Thread Wei Yongjun
From: Wei Yongjun 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 --- drivers/target/target_core_pscsi.c | 8 1 file changed, 4 insertions(+)