From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?TWF0aWFzIEJqw7hybGluZw==?= Subject: Re: [PATCH v7 1/5] lightnvm: Support for Open-Channel SSDs Date: Fri, 04 Sep 2015 10:49:33 +0200 Message-ID: <55E95B1D.1010700@bjorling.me> References: <1438957791-24632-1-git-send-email-mb@lightnvm.io> <1438957791-24632-2-git-send-email-mb@lightnvm.io> <55E67218.9010701@cn.fujitsu.com> <55E6D41A.5060100@bjorling.me> <55E94301.3010501@cn.fujitsu.com> <55E950BA.50203@bjorling.me> <55E955DF.5020303@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: jg@lightnvm.io, Stephen.Bates@pmcs.com, keith.busch@intel.com, =?UTF-8?B?TWF0aWFzIEJqw7hybGluZw==?= To: Dongsheng Yang , hch@infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Return-path: In-Reply-To: <55E955DF.5020303@cn.fujitsu.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 09/04/2015 10:27 AM, Dongsheng Yang wrote: > On 09/04/2015 04:05 PM, Matias Bj=C3=B8rling wrote: >>> >>> So here is a suggestion, register_bm again >>> if we found nvm_dev->bm =3D=3D NULL in create_target(). And if it i= s still >>> NULL after that. return an error "nvm: no compatible bm was found" >>> and stop target creating. Otherwise, there would be a NULL Pointer >>> reference problem. >>> >>> That's a real problem I met in my testing and I did this change >>> in my local using. I hope that's useful to you. >>> >> Hi Yang, >> ac >> Similar to this? > > Okey, I attached two changes in my local using. I hope that > useful to you. > Thanks! Applied and pushed to master.