Re: [PATCH] bluetooth : rfcomm tty BUG_ON() code fix

2008-01-10 Thread David Miller
From: Dave Young <[EMAIL PROTECTED]> Date: Mon, 7 Jan 2008 13:41:22 +0800 > 1) In tty.c the BUG_ON at line 115 will never be called, because the the > before list_del_init in this same function. > 115 BUG_ON(!list_empty(&dev->list)); > So move the list_del_init to rfcomm_dev_del > > 2

[PATCH] bluetooth : rfcomm tty BUG_ON() code fix

2008-01-06 Thread Dave Young
1) In tty.c the BUG_ON at line 115 will never be called, because the the before list_del_init in this same function. 115 BUG_ON(!list_empty(&dev->list)); So move the list_del_init to rfcomm_dev_del 2) The rfcomm_dev_del could be called from diffrent path (rfcomm_tty_hangup/rfcomm_dev_