Dave Young f951375d47 [BLUETOOTH]: rfcomm tty BUG_ON() code fix
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_state_change/rfcomm_release_dev),

   So add another BUG_ON when the rfcomm_dev_del is called more than
   one time.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-10 22:22:52 -08:00
..
2007-12-16 13:35:51 -08:00
2007-12-20 13:59:39 -08:00
2007-12-20 14:03:11 -08:00
2007-11-29 18:08:48 -05:00
2007-12-07 04:31:47 -08:00
2007-12-20 14:02:40 -08:00
2007-12-14 13:54:37 -08:00
2008-01-04 00:47:02 -08:00
2005-04-16 15:20:36 -07:00