diff options
author | David Vrabel <david.vrabel@csr.com> | 2009-08-25 10:07:12 -0400 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2009-08-25 10:07:12 -0400 |
commit | a9e75a389254801ca160b72c6e221e5bb7e35df9 (patch) | |
tree | 18c7b909caf7b2f6cb3d065205b5b2db60b1c115 /drivers/uwb/lc-rc.c | |
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>
Diffstat (limited to 'drivers/uwb/lc-rc.c')
-rw-r--r-- | drivers/uwb/lc-rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uwb/lc-rc.c b/drivers/uwb/lc-rc.c index 9cf21e6bb624..9611ef3b787a 100644 --- a/drivers/uwb/lc-rc.c +++ b/drivers/uwb/lc-rc.c | |||
@@ -288,8 +288,8 @@ error_sys_add: | |||
288 | error_dev_add: | 288 | error_dev_add: |
289 | error_rc_setup: | 289 | error_rc_setup: |
290 | rc->stop(rc); | 290 | rc->stop(rc); |
291 | uwbd_stop(rc); | ||
292 | error_rc_start: | 291 | error_rc_start: |
292 | uwbd_stop(rc); | ||
293 | return result; | 293 | return result; |
294 | } | 294 | } |
295 | EXPORT_SYMBOL_GPL(uwb_rc_add); | 295 | EXPORT_SYMBOL_GPL(uwb_rc_add); |