From: Anatol Pomozov Date: Wed, 30 Jul 2014 22:57:03 +0000 (-0700) Subject: Bluetooth: Fix crash in the Marvell driver initialization codepath X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~12^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8500d791c458ccbbb3e2d3fa9a0320ffd5729069;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed