OSDN Git Service

[PATCH] bcm43xx: add assert(bcm->initialized) to periodic_tasks_setup().
authorMichael Buesch <mbuesch@freenet.de>
Tue, 21 Feb 2006 17:19:59 +0000 (18:19 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Mar 2006 16:18:39 +0000 (11:18 -0500)
Signed-off-by: Michael Buesch <mbuesch@freenet.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c

index 4a7d88d..899c06f 100644 (file)
@@ -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);