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

Jens Axboe axboe at kernel.dk
Tue Jul 12 08:34:13 PDT 2016


On 07/06/2016 05:02 AM, weiyj_lk at 163.com wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
>
> 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




More information about the Linux-nvme mailing list