diff options
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r-- | drivers/usb/host/ehci-sched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 90d6900a37f4..5871944e6145 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c | |||
@@ -864,9 +864,8 @@ iso_sched_alloc (unsigned packets, gfp_t mem_flags) | |||
864 | int size = sizeof *iso_sched; | 864 | int size = sizeof *iso_sched; |
865 | 865 | ||
866 | size += packets * sizeof (struct ehci_iso_packet); | 866 | size += packets * sizeof (struct ehci_iso_packet); |
867 | iso_sched = kmalloc (size, mem_flags); | 867 | iso_sched = kzalloc(size, mem_flags); |
868 | if (likely (iso_sched != NULL)) { | 868 | if (likely (iso_sched != NULL)) { |
869 | memset(iso_sched, 0, size); | ||
870 | INIT_LIST_HEAD (&iso_sched->td_list); | 869 | INIT_LIST_HEAD (&iso_sched->td_list); |
871 | } | 870 | } |
872 | return iso_sched; | 871 | return iso_sched; |