patch-2.4.15 linux/drivers/atm/suni.c
Next file: linux/drivers/block/acsi.c
Previous file: linux/drivers/atm/idt77252_tables.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Nov 13 09:19:41 2001
- Orig file:
v2.4.14/linux/drivers/atm/suni.c
- Orig date:
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/atm/suni.c linux/drivers/atm/suni.c
@@ -232,6 +232,9 @@
if (!(PRIV(dev) = kmalloc(sizeof(struct suni_priv),GFP_KERNEL)))
return -ENOMEM;
+
+ MOD_INC_USE_COUNT;
+
PRIV(dev)->dev = dev;
spin_lock_irqsave(&sunis_lock,flags);
first = !sunis;
@@ -276,6 +279,8 @@
if (!sunis) del_timer_sync(&poll_timer);
spin_unlock_irqrestore(&sunis_lock,flags);
kfree(PRIV(dev));
+
+ MOD_DEC_USE_COUNT;
return 0;
}
@@ -316,7 +321,6 @@
int init_module(void)
{
- MOD_INC_USE_COUNT;
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)