Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-13 Thread Sagi Grimberg
Thanks, Reviewed-by: Sagi Grimberg

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-13 Thread Sagi Grimberg
Thanks, Reviewed-by: Sagi Grimberg

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-12 Thread Jens Axboe
On 07/06/2016 05:02 AM, weiyj...@163.com wrote: From: Wei Yongjun In case of error, the function kstrndup() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Added for 4.8, thanks. -- Jens Axboe

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-12 Thread Jens Axboe
On 07/06/2016 05:02 AM, weiyj...@163.com wrote: From: Wei Yongjun In case of error, the function kstrndup() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Added for 4.8, thanks. -- Jens Axboe

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-08 Thread J Freyensee
On Wed, 2016-07-06 at 12:02 +, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function kstrndup() returns NULL pointer > not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Signed-off-by:

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-08 Thread J Freyensee
On Wed, 2016-07-06 at 12:02 +, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function kstrndup() 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 Looks good and

[PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-06 Thread weiyj_lk
From: Wei Yongjun In case of error, the function kstrndup() 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 ---

[PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-06 Thread weiyj_lk
From: Wei Yongjun In case of error, the function kstrndup() 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/nvme/target/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff