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>
This commit is contained in:
David Vrabel 2009-08-25 15:07:12 +01:00
parent 3fafdd7cc8
commit a9e75a3892

View File

@ -288,8 +288,8 @@ int uwb_rc_add(struct uwb_rc *rc, struct device *parent_dev, void *priv)
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);