1
linux/include/net/bluetooth
Dave Young af0d3b103b bluetooth: rfcomm_init bug fix
rfcomm tty may be used before rfcomm_tty_driver initilized,
The problem is that now socket layer init before tty layer, if userspace
program do socket callback right here then oops will happen.

reporting in:
http://marc.info/?l=linux-bluetooth&m=124404919324542&w=2

make 3 changes:
1. remove #ifdef in rfcomm/core.c,
make it blank function when rfcomm tty not selected in rfcomm.h

2. tune the rfcomm_init error patch to ensure
tty driver initilized before rfcomm socket usage.

3. remove __exit for rfcomm_cleanup_sockets
because above change need call it in a __init function.

Reported-by: Oliver Hartkopp <oliver@hartkopp.net>
Tested-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-03 13:24:39 -07:00
..
bluetooth.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-next-2.6 2009-06-11 05:47:43 -07:00
hci_core.h Bluetooth: Add native RFKILL soft-switch support for all devices 2009-06-08 14:50:01 +02:00
hci.h Bluetooth: Add different pairing timeout for Legacy Pairing 2009-04-28 09:31:38 -07:00
l2cap.h Bluetooth: Add basic constants for L2CAP ERTM support and use them 2009-06-08 14:50:00 +02:00
rfcomm.h bluetooth: rfcomm_init bug fix 2009-08-03 13:24:39 -07:00
sco.h