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

From: Jens Axboe
Date: Tue Jul 12 2016 - 11:34:21 EST


On 07/06/2016 05:02 AM, weiyj_lk@xxxxxxx wrote:
From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>

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