mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
solve rfkill-wlan driver kernel panic when rfkill-bt driver probe fail
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user