diff options
Diffstat (limited to 'drivers/net/wimax/i2400m/sdio-tx.c')
-rw-r--r-- | drivers/net/wimax/i2400m/sdio-tx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/sdio-tx.c b/drivers/net/wimax/i2400m/sdio-tx.c index 5105a5ebc44f..de66d068c9cb 100644 --- a/drivers/net/wimax/i2400m/sdio-tx.c +++ b/drivers/net/wimax/i2400m/sdio-tx.c | |||
@@ -149,5 +149,8 @@ int i2400ms_tx_setup(struct i2400ms *i2400ms) | |||
149 | 149 | ||
150 | void i2400ms_tx_release(struct i2400ms *i2400ms) | 150 | void i2400ms_tx_release(struct i2400ms *i2400ms) |
151 | { | 151 | { |
152 | destroy_workqueue(i2400ms->tx_workqueue); | 152 | if (i2400ms->tx_workqueue) { |
153 | destroy_workqueue(i2400ms->tx_workqueue); | ||
154 | i2400ms->tx_workqueue = NULL; | ||
155 | } | ||
153 | } | 156 | } |