From: Vivek Gautam Date: Tue, 9 Apr 2013 13:12:11 +0000 (+0530) Subject: usb: ehci-s5p: fix: Fix null pointer dereferencing X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcd85a0e624a6825e2b4477a5ad2a7873288809;p=pandora-kernel.git usb: ehci-s5p: fix: Fix null pointer dereferencing 7edb3da: (USB: EHCI: make ehci-s5p a separate driver) raised an issue with ehci-s5p's driver data. Now that 's5p_ehci_hcd' doesn't maintain pointer to 'usb_hcd' and s5p_ehci is nothing but a pointer to hcd->priv; add hcd to the driver data rather than s5p_ehci. This fixes issues with null pointer dereferencing in s5p_ehci_shutdown(), s5p_ehci_suspend(), s5p_ehci_resume(). Signed-off-by: Vivek Gautam CC: Manjunath Goudar CC: Arnd Bergmann CC: Jingoo Han Acked-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed