mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
USB: atmel_usb_udc: Use kzalloc() to allocate ep structures
This ensures that all fields are properly initialized. Signed-off-by: Haavard Skinnemoen <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f42706c904
commit
fe92c9e481
1 changed files with 1 additions and 1 deletions
|
|
@ -1941,7 +1941,7 @@ static int __init usba_udc_probe(struct platform_device *pdev)
|
|||
usba_writel(udc, CTRL, USBA_DISABLE_MASK);
|
||||
clk_disable(pclk);
|
||||
|
||||
usba_ep = kmalloc(sizeof(struct usba_ep) * pdata->num_ep,
|
||||
usba_ep = kzalloc(sizeof(struct usba_ep) * pdata->num_ep,
|
||||
GFP_KERNEL);
|
||||
if (!usba_ep)
|
||||
goto err_alloc_ep;
|
||||
|
|
|
|||
Loading…
Reference in a new issue