From: Michael Buesch Date: Tue, 21 Feb 2006 17:19:59 +0000 (+0100) Subject: [PATCH] bcm43xx: add assert(bcm->initialized) to periodic_tasks_setup(). X-Git-Tag: v2.6.17-rc1~158^2~35 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1d1a73ccdc618168f2a5c962aab250605c93e517;p=linux-2.6-omap-h63xx.git [PATCH] bcm43xx: add assert(bcm->initialized) to periodic_tasks_setup(). Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_main.c b/drivers/net/wireless/bcm43xx/bcm43xx_main.c index 4a7d88d2821..899c06fe0bf 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_main.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_main.c @@ -3366,6 +3366,7 @@ static void bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm) { struct timer_list *timer = &(bcm->periodic_tasks); + assert(bcm->initialized); setup_timer(timer, bcm43xx_periodic_task_handler, (unsigned long)bcm);