From: David Vrabel Date: Tue, 25 Aug 2009 14:07:12 +0000 (+0100) Subject: uwb: stop uwbd thread if rc->start() fails X-Git-Tag: v2.6.32-rc1~665^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9e75a389254801ca160b72c6e221e5bb7e35df9;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- 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_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);