diff options
Diffstat (limited to 'drivers/char/synclink_gt.c')
-rw-r--r-- | drivers/char/synclink_gt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c index 428b514201f4..372a37e25620 100644 --- a/drivers/char/synclink_gt.c +++ b/drivers/char/synclink_gt.c | |||
@@ -3414,13 +3414,12 @@ static struct slgt_info *alloc_dev(int adapter_num, int port_num, struct pci_dev | |||
3414 | { | 3414 | { |
3415 | struct slgt_info *info; | 3415 | struct slgt_info *info; |
3416 | 3416 | ||
3417 | info = kmalloc(sizeof(struct slgt_info), GFP_KERNEL); | 3417 | info = kzalloc(sizeof(struct slgt_info), GFP_KERNEL); |
3418 | 3418 | ||
3419 | if (!info) { | 3419 | if (!info) { |
3420 | DBGERR(("%s device alloc failed adapter=%d port=%d\n", | 3420 | DBGERR(("%s device alloc failed adapter=%d port=%d\n", |
3421 | driver_name, adapter_num, port_num)); | 3421 | driver_name, adapter_num, port_num)); |
3422 | } else { | 3422 | } else { |
3423 | memset(info, 0, sizeof(struct slgt_info)); | ||
3424 | info->magic = MGSL_MAGIC; | 3423 | info->magic = MGSL_MAGIC; |
3425 | INIT_WORK(&info->task, bh_handler); | 3424 | INIT_WORK(&info->task, bh_handler); |
3426 | info->max_frame_size = 4096; | 3425 | info->max_frame_size = 4096; |