Skip to content

Commit

Permalink
uwb: stop uwbd thread if rc->start() fails
Browse files Browse the repository at this point in the history
This fixes an oops when uwbd thread continues running after a failed
radio controller start.

Signed-off-by: David Vrabel <david.vrabel@csr.com>
  • Loading branch information
David Vrabel committed Aug 25, 2009
1 parent 3fafdd7 commit a9e75a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/uwb/lc-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9e75a3

Please sign in to comment.