From: Jason Gunthorpe Date: Fri, 22 May 2020 14:48:31 +0000 Subject: Re: [PATCH] block/rnbd: Fix an IS_ERR() vs NULL check in find_or_create_sess() Message-Id: <20200522144831.GH17583@ziepe.ca> List-Id: References: <20200519120347.GD42765@mwanda> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jinpu Wang Cc: Danil Kipnis , Jens Axboe , Bart Van Assche , linux-block@vger.kernel.org, kernel-janitors@vger.kernel.org, Dan Carpenter On Fri, May 22, 2020 at 07:13:08AM +0200, Jinpu Wang wrote: > On Tue, May 19, 2020 at 2:52 PM Jinpu Wang wrote: > > > > On Tue, May 19, 2020 at 2:04 PM Dan Carpenter wrote: > > > > > > The alloc_sess() function returns error pointers, it never returns NULL. > > > > > > Fixes: f7a7a5c228d4 ("block/rnbd: client: main functionality") > > > Signed-off-by: Dan Carpenter > > Thanks Dan, > > Reviewed-by: Jack Wang > > Hi Jason, > > Could you also queue this fix for for-next? Uhh.. Yes OK, but if it doesn't get cc'd to linux-rdma I won't see it.. Please let me know if there are others Thanks, Jason