On Friday 31 August 2007, Larry Finger wrote:
> -void bcm43xx_periodic_tasks_delete(struct bcm43xx_private *bcm)
> -{
> -     cancel_rearming_delayed_work(&bcm->periodic_work);
> -}
> -
>   void bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm)
>   {
>       struct delayed_work *work = &bcm->periodic_work;
> @@ -3335,7 +3334,15 @@ static void bcm43xx_free_board(struct bc
>   {
>       bcm43xx_rng_exit(bcm);
>       bcm43xx_sysfs_unregister(bcm);
> -     bcm43xx_periodic_tasks_delete(bcm);
> +
> +     mutex_lock(&(bcm)->mutex);
> +     bcm43xx_set_status(bcm, BCM43xx_STAT_UNINIT);
> +     mutex_unlock(&(bcm)->mutex);

lock might not be needed, but I think it doesn't hurt.

You get my ACK.

PS: I hate this damn berlios list so much. It always randomly strips
some CCs.
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to