From: James Bottomley Date: Wed, 22 Sep 2010 16:23:57 +0000 Subject: Re: [PATCH 04/14] memstick: core: fix device_register() error Message-Id: <1285172637.2993.195.camel@mulgrave.site> List-Id: References: <1284900889-24369-1-git-send-email-segooon@gmail.com> <20100921152031.30365b3f.akpm@linux-foundation.org> <20100921224947.GA20183@kroah.com> <4C99D436.700@panasas.com> <20100922154746.GB26178@kroah.com> <1285170996.2993.134.camel@mulgrave.site> <20100922162006.GA27853@kroah.com> In-Reply-To: <20100922162006.GA27853@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Greg KH Cc: Boaz Harrosh , Kay Sievers , Andrew Morton , Vasiliy Kulikov , kernel-janitors@vger.kernel.org, Tejun Heo , Jiri Slaby , linux-kernel@vger.kernel.org, Dan Carpenter On Wed, 2010-09-22 at 09:20 -0700, Greg KH wrote: > > What other email? ... neither you nor Kay replied after either Boaz's > > patch or the corrected one were posted. > > See my other email a minute ago in response to this thread. Can we start again? You've been replying to a patch to do a put_device() in device_register() which everyone agrees looks wrong. The proposal to fix all of this is to free the kobject name and NULL it out in device_add(). That fixes all the places you and kay broke when you added the variable length name stuff. James