diff options
Diffstat (limited to 'net/atm/br2684.c')
| -rw-r--r-- | net/atm/br2684.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 680ccb12aae8..d00cca97eb33 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
| @@ -5,7 +5,6 @@ Author: Marcell GAL, 2000, XDSL Ltd, Hungary | |||
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #include <linux/module.h> | 7 | #include <linux/module.h> |
| 8 | #include <linux/config.h> | ||
| 9 | #include <linux/init.h> | 8 | #include <linux/init.h> |
| 10 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
| 11 | #include <linux/list.h> | 10 | #include <linux/list.h> |
| @@ -509,10 +508,9 @@ Note: we do not have explicit unassign, but look at _push() | |||
| 509 | 508 | ||
| 510 | if (copy_from_user(&be, arg, sizeof be)) | 509 | if (copy_from_user(&be, arg, sizeof be)) |
| 511 | return -EFAULT; | 510 | return -EFAULT; |
| 512 | brvcc = kmalloc(sizeof(struct br2684_vcc), GFP_KERNEL); | 511 | brvcc = kzalloc(sizeof(struct br2684_vcc), GFP_KERNEL); |
| 513 | if (!brvcc) | 512 | if (!brvcc) |
| 514 | return -ENOMEM; | 513 | return -ENOMEM; |
| 515 | memset(brvcc, 0, sizeof(struct br2684_vcc)); | ||
| 516 | write_lock_irq(&devs_lock); | 514 | write_lock_irq(&devs_lock); |
| 517 | net_dev = br2684_find_dev(&be.ifspec); | 515 | net_dev = br2684_find_dev(&be.ifspec); |
| 518 | if (net_dev == NULL) { | 516 | if (net_dev == NULL) { |
