linux-uconsole/drivers/bluetooth
Anatol Pomozov 8500d791c4 Bluetooth: Fix crash in the Marvell driver initialization codepath
btmrvl_add_card() function calls kthread_run that might return error
(e.g. if current thread is killed). If one tries to use the error
value as a pointer then invalid memory access oops happens.

Check kthread_run() return value, if it is an error then release resources
correctly.

TEST=boot computer with BT modules enabled. I see the error message that
BT device initialization failed. Now kernel does not crash. Hint: to enable
BT run 'rmmod btmrvl_sdio; modprobe btmrvl_sdio'

Signed-off-by: Anatol Pomozov <anatol.pomozov@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-07-31 01:07:28 +02:00
..
ath3k.c
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c Bluetooth: Fix crash in the Marvell driver initialization codepath 2014-07-31 01:07:28 +02:00
btmrvl_sdio.c
btmrvl_sdio.h
btsdio.c
btuart_cs.c
btusb.c
btwilink.c
dtl1_cs.c
hci_ath.c
hci_bcsp.c
hci_h4.c
hci_h5.c
hci_ldisc.c
hci_ll.c
hci_uart.h
hci_vhci.c
Kconfig
Makefile