uwb: stop uwbd thread if rc->start() fails
authorDavid Vrabel <david.vrabel@csr.com>
Tue, 25 Aug 2009 14:07:12 +0000 (15:07 +0100)
committerDavid Vrabel <david.vrabel@csr.com>
Tue, 25 Aug 2009 14:07:12 +0000 (15:07 +0100)
This fixes an oops when uwbd thread continues running after a failed
radio controller start.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
drivers/uwb/lc-rc.c

index 9cf21e6bb624e036b6f698bc975f7e66080ca16e..9611ef3b787a39c3de7b295c39d99a7e376a2afe 100644 (file)
@@ -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);