From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: tty_register_device NULL pointer dereference in 2.6.31-rc4 From: Marcel Holtmann To: Alan Cox Cc: Oliver Hartkopp , Linux Netdev List , linux-bluetooth@vger.kernel.org In-Reply-To: <20090725115011.7ddf8d00@lxorguk.ukuu.org.uk> References: <4A6AD807.6060706@hartkopp.net> <20090725115011.7ddf8d00@lxorguk.ukuu.org.uk> Content-Type: text/plain Date: Sat, 25 Jul 2009 13:07:33 +0200 Message-Id: <1248520053.28545.156.camel@violet> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Alan, > > this morning i got a NULL pointer dereference in tty_register_device() that > > looked similar to the one, i posted here on 03-jun-2009: > > > > http://marc.info/?l=linux-bluetooth&m=124404919324542&w=2 > > > > As the boot sequence stopped after this point, i was only able to take a > > picture of it - see attached jpg. > > > > I was able to shut down the system gracefully by pressing the power button. > > > > The problem emerges really seldom. > > > > Any idea? > > tty_register_device appears to have been called with a NULL pointer. Not > sure why however. if that is the pointer for the struct device, then that used to be fine in the past. Not all RFCOMM device have a parent when they are created. Regards Marcel