Skip to content
Commit 5b26c94c authored by Venu Byravarasu's avatar Venu Byravarasu Committed by Stephen Warren
Browse files

usb: phy: use kzalloc to allocate struct tegra_usb_phy



Use kzalloc instead of kmalloc to allocate struct tegra_usb_phy.
This ensures that all function pointers in member u_phy are
initialized to NULL.

Signed-off-by: default avatarVenu Byravarasu <vbyravarasu@nvidia.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 16a665f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment