summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@csr.com>2009-08-25 16:07:12 +0200
committerDavid Vrabel <david.vrabel@csr.com>2009-08-25 16:07:12 +0200
commita9e75a389254801ca160b72c6e221e5bb7e35df9 (patch)
tree18c7b909caf7b2f6cb3d065205b5b2db60b1c115 /drivers
parentuwb: handle radio controller events with out-of-range IDs correctly (diff)
downloadlinux-a9e75a389254801ca160b72c6e221e5bb7e35df9.tar.xz
linux-a9e75a389254801ca160b72c6e221e5bb7e35df9.zip
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')
-rw-r--r--drivers/uwb/lc-rc.c2
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:
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);