diff options
Diffstat (limited to 'drivers/s390/cio/css.c')
-rw-r--r-- | drivers/s390/cio/css.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 5b304dbacaeb..74ea8aac4b7d 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c | |||
@@ -630,10 +630,9 @@ css_enqueue_subchannel_slow(struct subchannel_id schid) | |||
630 | struct slow_subchannel *new_slow_sch; | 630 | struct slow_subchannel *new_slow_sch; |
631 | unsigned long flags; | 631 | unsigned long flags; |
632 | 632 | ||
633 | new_slow_sch = kmalloc(sizeof(struct slow_subchannel), GFP_ATOMIC); | 633 | new_slow_sch = kzalloc(sizeof(struct slow_subchannel), GFP_ATOMIC); |
634 | if (!new_slow_sch) | 634 | if (!new_slow_sch) |
635 | return -ENOMEM; | 635 | return -ENOMEM; |
636 | memset(new_slow_sch, 0, sizeof(struct slow_subchannel)); | ||
637 | new_slow_sch->schid = schid; | 636 | new_slow_sch->schid = schid; |
638 | spin_lock_irqsave(&slow_subchannel_lock, flags); | 637 | spin_lock_irqsave(&slow_subchannel_lock, flags); |
639 | list_add_tail(&new_slow_sch->slow_list, &slow_subchannels_head); | 638 | list_add_tail(&new_slow_sch->slow_list, &slow_subchannels_head); |