diff options
Diffstat (limited to 'drivers/net/slip/slip.c')
| -rw-r--r-- | drivers/net/slip/slip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/slip/slip.c b/drivers/net/slip/slip.c index 8940417c30e5..b008266e91ea 100644 --- a/drivers/net/slip/slip.c +++ b/drivers/net/slip/slip.c | |||
| @@ -1307,7 +1307,7 @@ static int __init slip_init(void) | |||
| 1307 | printk(KERN_INFO "SLIP linefill/keepalive option.\n"); | 1307 | printk(KERN_INFO "SLIP linefill/keepalive option.\n"); |
| 1308 | #endif | 1308 | #endif |
| 1309 | 1309 | ||
| 1310 | slip_devs = kzalloc(sizeof(struct net_device *)*slip_maxdev, | 1310 | slip_devs = kcalloc(slip_maxdev, sizeof(struct net_device *), |
| 1311 | GFP_KERNEL); | 1311 | GFP_KERNEL); |
| 1312 | if (!slip_devs) | 1312 | if (!slip_devs) |
| 1313 | return -ENOMEM; | 1313 | return -ENOMEM; |
