Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()
From
Jens Axboe <>
Date
Tue, 12 Jul 2016 08:34:13 -0700
On 07/06/2016 05:02 AM, weiyj_lk@163.com wrote: > From: Wei Yongjun <yongjun_wei@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.