mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
usb: s5p-ehci: fix a NULL pointer deference
This patch fixes a NULL pointer deference. A NULL pointer dereference happens since s5p_ehci->hcd field is not initialized yet in probe function. [[email protected]: edit commit message] Signed-off-by: Yulgon Kim <[email protected]> Signed-off-by: Jingoo Han <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
d0f2fb2500
commit
e5d3d4463f
1 changed files with 1 additions and 0 deletions
|
|
@ -86,6 +86,7 @@ static int __devinit s5p_ehci_probe(struct platform_device *pdev)
|
|||
goto fail_hcd;
|
||||
}
|
||||
|
||||
s5p_ehci->hcd = hcd;
|
||||
s5p_ehci->clk = clk_get(&pdev->dev, "usbhost");
|
||||
|
||||
if (IS_ERR(s5p_ehci->clk)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue