提交 a9e75a38 编写于 作者: D David Vrabel

uwb: stop uwbd thread if rc->start() fails

This fixes an oops when uwbd thread continues running after a failed
radio controller start.
Signed-off-by: NDavid Vrabel <david.vrabel@csr.com>
上级 3fafdd7c
......@@ -288,8 +288,8 @@ int uwb_rc_add(struct uwb_rc *rc, struct device *parent_dev, void *priv)
error_dev_add:
error_rc_setup:
rc->stop(rc);
uwbd_stop(rc);
error_rc_start:
uwbd_stop(rc);
return result;
}
EXPORT_SYMBOL_GPL(uwb_rc_add);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册