diff options
author | 2014-07-30 15:57:03 -0700 | |
---|---|---|
committer | 2014-07-31 01:07:28 +0200 | |
commit | 8500d791c458ccbbb3e2d3fa9a0320ffd5729069 (patch) | |
tree | 281f1d7bb7e6562dfe3ffd68d56ff83531dd4507 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Bluetooth: Always use non-bonding requirement when not bondable (diff) | |
download | linux-dev-8500d791c458ccbbb3e2d3fa9a0320ffd5729069.tar.xz linux-dev-8500d791c458ccbbb3e2d3fa9a0320ffd5729069.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions