From mboxrd@z Thu Jan 1 00:00:00 1970 From: axboe@kernel.dk (Jens Axboe) Date: Tue, 12 Jul 2016 08:34:13 -0700 Subject: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc() In-Reply-To: <1467806529-23712-1-git-send-email-weiyj_lk@163.com> References: <1467806529-23712-1-git-send-email-weiyj_lk@163.com> Message-ID: <57850DF5.2090209@kernel.dk> On 07/06/2016 05:02 AM, weiyj_lk@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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030457AbcGLPeS (ORCPT ); Tue, 12 Jul 2016 11:34:18 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:33757 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030435AbcGLPeQ (ORCPT ); Tue, 12 Jul 2016 11:34:16 -0400 Subject: Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc() To: weiyj_lk@163.com, Christoph Hellwig , Sagi Grimberg References: <1467806529-23712-1-git-send-email-weiyj_lk@163.com> Cc: Wei Yongjun , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org From: Jens Axboe Message-ID: <57850DF5.2090209@kernel.dk> Date: Tue, 12 Jul 2016 08:34:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <1467806529-23712-1-git-send-email-weiyj_lk@163.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2016 05:02 AM, weiyj_lk@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