diff options
author | Yulgon Kim <yulgon.kim@samsung.com> | 2011-08-18 14:02:45 +0900 |
---|---|---|
committer | Angus Ainslie <angus.ainslie@linaro.org> | 2011-08-18 17:15:43 -0600 |
commit | bc2dcbb98a5485916dd8fd44d3694c6306aa93f2 (patch) | |
tree | 625038c73f3783a0b35ace544c172d586efb858d | |
parent | 74bb1038edc98374e5fa159ad55aa63f4ecf326a (diff) |
usb: s5p-ehci: fix a NULL pointer deference3.0.0-2011.08
This patch fixes a NULL pointer deference. A NULL pointer
dereference happens since s5p_ehci->hcd field is not initialized
yet in probe function.
[jg1.han@samsung.com: edit commit message]
Signed-off-by: Yulgon Kim <yulgon.kim@samsung.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
-rw-r--r-- | drivers/usb/host/ehci-s5p.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index e3374c8f7b3f..491a209c9d2f 100644 --- a/drivers/usb/host/ehci-s5p.c +++ b/drivers/usb/host/ehci-s5p.c @@ -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)) { |