wimax/i2400m: when stopping the device, cancel any pending message
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Wed, 7 Oct 2009 03:20:15 +0000 (12:20 +0900)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Mon, 19 Oct 2009 06:56:17 +0000 (15:56 +0900)
commit5eeae35b9a2e304fc4ae3d9eed63afeea23b482c
tree7d4dcc2d36785b78d990c02af968d61467000a40
parent28cff50d99ce9a1db65b7d4dcdcc0f1f8d9f9309
wimax/i2400m: when stopping the device, cancel any pending message

The stop procedure for the device must make sure that any task that is
waiting on a message is properly cancelled.

This was being taken care of only by the __i2400m_dev_reset_handle()
path and the rest was working by chance because the waits have a
timeout.

Fixed by adding a proper cancellation in __i2400m_dev_stop().

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/driver.c