[PATCH RFC 1/3] libertas_spi: cancel packet work on module removal

Dan Williams dcbw at redhat.com
Thu Apr 7 17:43:59 EDT 2011


On Thu, 2011-04-07 at 23:25 +0300, Vasily Khoruzhick wrote:
> Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>

Acked-by: Dan Williams <dcbw at redhat.com>

> ---
>  drivers/net/wireless/libertas/if_spi.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
> index 078ef43..d893560 100644
> --- a/drivers/net/wireless/libertas/if_spi.c
> +++ b/drivers/net/wireless/libertas/if_spi.c
> @@ -1195,6 +1195,7 @@ static int __devexit libertas_spi_remove(struct spi_device *spi)
>  	lbs_remove_card(priv); /* will call free_netdev */
>  
>  	free_irq(spi->irq, card);
> +	cancel_work_sync(&card->packet_work);
>  	flush_workqueue(card->workqueue);
>  	destroy_workqueue(card->workqueue);
>  	if (card->pdata->teardown)





More information about the libertas-dev mailing list