[PATCH] cxacru: Fix infinite loop when trying to cancel polling task
commit296d13d3b93c22bd0eaf6d0dc5f131a243aed7ce
authorSimon Arlott <simon@fire.lp0.eu>
Mon, 30 Apr 2007 18:59:38 +0000 (30 19:59 +0100)
committerChris Wright <chrisw@sous-sol.org>
Wed, 23 May 2007 21:32:41 +0000 (23 14:32 -0700)
treeafacab2dcbcb4e97d905391ce74ef77a94b2faa0
parent27c99eb74744c71c162b68d5b3ed7c682eb55e3e
[PATCH] cxacru: Fix infinite loop when trying to cancel polling task

As part of the device initialisation cxacru_atm_start starts
a rearming status polling task, which is cancelled in
cxacru_unbind. Failure to ever start the task means an
infinite loop occurs trying to cancel it.

Possible reasons for not starting the polling task:
* Firmware files missing
* Device initialisation fails
* User unplugs device or unloads module

Effect:
* Infinite loop in khubd trying to add/remove the device (or rmmod if timed right)

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/atm/cxacru.c