浏览代码

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: David Vrabel <david.vrabel@csr.com>
David Vrabel 16 年之前
父节点
当前提交
a9e75a3892
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/uwb/lc-rc.c

+ 1 - 1
drivers/uwb/lc-rc.c

@@ -288,8 +288,8 @@ error_sys_add:
 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);