]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: s5p-ehci: fix a NULL pointer deference
authorYulgon Kim <yulgon.kim@samsung.com>
Thu, 18 Aug 2011 05:02:45 +0000 (14:02 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:39:49 +0000 (11:39 -0700)
commitb942664bf67f1f0ce021b327bd37785835e5e6b6
tree8c14c437f5d4e6dcfa8d6fc3f6304547ce14669f
parent400e39dcf58c2d002fa0440a589630f3abe08bae
usb: s5p-ehci: fix a NULL pointer deference

commit e5d3d4463fb30998385f9e78ab3c7f63b5813000 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-s5p.c