mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
solve rfkill-wlan driver kernel panic when rfkill-bt driver probe fail
This commit is contained in:
parent
2644e8a0c9
commit
b9fddf335a
|
|
@ -660,12 +660,12 @@ static int rfkill_rk_probe(struct platform_device *pdev)
|
|||
fail_rfkill:
|
||||
rfkill_destroy(rfkill->rfkill_dev);
|
||||
fail_alloc:
|
||||
g_rfkill = NULL;
|
||||
|
||||
remove_proc_entry("btwrite", sleep_dir);
|
||||
remove_proc_entry("lpm", sleep_dir);
|
||||
fail_gpio:
|
||||
|
||||
g_rfkill = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user