git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
isdn
/
hysdn
/
hysdn_net.c
diff --git
a/drivers/isdn/hysdn/hysdn_net.c
b/drivers/isdn/hysdn/hysdn_net.c
index
d205249
..
557d96c
100644
(file)
--- a/
drivers/isdn/hysdn/hysdn_net.c
+++ b/
drivers/isdn/hysdn/hysdn_net.c
@@
-278,11
+278,10
@@
hysdn_net_create(hysdn_card * card)
return (-ENOMEM);
}
hysdn_net_release(card); /* release an existing net device */
return (-ENOMEM);
}
hysdn_net_release(card); /* release an existing net device */
- if ((dev = k
m
alloc(sizeof(struct net_local), GFP_KERNEL)) == NULL) {
+ if ((dev = k
z
alloc(sizeof(struct net_local), GFP_KERNEL)) == NULL) {
printk(KERN_WARNING "HYSDN: unable to allocate mem\n");
return (-ENOMEM);
}
printk(KERN_WARNING "HYSDN: unable to allocate mem\n");
return (-ENOMEM);
}
- memset(dev, 0, sizeof(struct net_local)); /* clean the structure */
spin_lock_init(&((struct net_local *) dev)->lock);
spin_lock_init(&((struct net_local *) dev)->lock);