Re: [PATCH] bluetooth: Fix crash in the driver initialization codepath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Anatol,

> 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@xxxxxxxxx>
> ---
> drivers/bluetooth/btmrvl_main.c | 5 +++++
> 1 file changed, 5 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux