On Sat, Jan 20, 2007 at 04:10:01AM +0200, Mikko Rapeli wrote: > I'm hitting this every time I forget to close GPRS/Bluetooth connection > before poweroff with 2.6.18-3-686 and vanilla 2.6.20rc4 too. > > http://bugzilla.kernel.org/show_bug.cgi?id=7509
My fix works for 2.6.22-rc5 and 2.6.18-4-686 but upstream has not approved or rejected this one liner yet: --- linux-2.6.22-rc5.orig/net/bluetooth/rfcomm/tty.c 2007-07-01 14:20:00.000000000 +0300 +++ linux-2.6.22-rc5/net/bluetooth/rfcomm/tty.c 2007-07-01 13:55:35.000000000 +0300 @@ -395,6 +397,10 @@ if (req.flags & (1 << RFCOMM_HANGUP_NOW)) rfcomm_dlc_close(dev->dlc, 0); + /* Be nice and shut down tty(s) synchronously before + * freeing rfcomm_dev */ + if (dev->tty) tty_vhangup(dev->tty); + rfcomm_dev_del(dev); rfcomm_dev_put(dev); return 0; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]