提交 4960b8fe 编写于 作者: M Marek Belisko 提交者: Greg Kroah-Hartman

staging: ft1000: Fix goto error logic.

Fix goto error logic which could lead to kernel panics
because kthread_stop() is called in not correct error
conditions. Seen it sometimes when dsp_reload() fails
then I got kernel panic.
Signed-off-by: NMarek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e999fb05
......@@ -204,9 +204,9 @@ static int ft1000_probe(struct usb_interface *interface,
return 0;
err_load:
kthread_stop(pft1000info->pPollThread);
err_thread:
kthread_stop(pft1000info->pPollThread);
err_load:
kfree(pFileStart);
err_fw:
kfree(ft1000dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册