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
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
atm
/
br2684.c
diff --git
a/net/atm/br2684.c
b/net/atm/br2684.c
index
d00cca9
..
680ccb1
100644
(file)
--- a/
net/atm/br2684.c
+++ b/
net/atm/br2684.c
@@
-5,6
+5,7
@@
Author: Marcell GAL, 2000, XDSL Ltd, Hungary
*/
#include <linux/module.h>
*/
#include <linux/module.h>
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
@@
-508,9
+509,10
@@
Note: we do not have explicit unassign, but look at _push()
if (copy_from_user(&be, arg, sizeof be))
return -EFAULT;
if (copy_from_user(&be, arg, sizeof be))
return -EFAULT;
- brvcc = k
z
alloc(sizeof(struct br2684_vcc), GFP_KERNEL);
+ brvcc = k
m
alloc(sizeof(struct br2684_vcc), GFP_KERNEL);
if (!brvcc)
return -ENOMEM;
if (!brvcc)
return -ENOMEM;
+ memset(brvcc, 0, sizeof(struct br2684_vcc));
write_lock_irq(&devs_lock);
net_dev = br2684_find_dev(&be.ifspec);
if (net_dev == NULL) {
write_lock_irq(&devs_lock);
net_dev = br2684_find_dev(&be.ifspec);
if (net_dev == NULL) {