commit | a9e75a389254801ca160b72c6e221e5bb7e35df9 | [log] [tgz] |
---|---|---|
author | David Vrabel <david.vrabel@csr.com> | Tue Aug 25 15:07:12 2009 +0100 |
committer | David Vrabel <david.vrabel@csr.com> | Tue Aug 25 15:07:12 2009 +0100 |
tree | 18c7b909caf7b2f6cb3d065205b5b2db60b1c115 | |
parent | 3fafdd7cc810a8fcd28b83fbde2d0e25830dee41 [diff] |
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>
diff --git a/drivers/uwb/lc-rc.c b/drivers/uwb/lc-rc.c index 9cf21e6..9611ef3 100644 --- a/drivers/uwb/lc-rc.c +++ b/drivers/uwb/lc-rc.c
@@ -288,8 +288,8 @@ 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);