linux/drivers/usb/host
Shimoda, Yoshihiro 5897b03829 usb: ehci-sh: fix illegal phy_init() running when platform_data is NULL
If the platform_data is not set, pdata will be uninitialized value.
Since the driver has the following code, if the condition is true when
the pdata is uninitialized value, the driver may jump to the illegal
phy_init().

	if (pdata && pdata->phy_init)
		pdata->phy_init();

This patch also fixes the following warning:

  CC      drivers/usb/host/ehci-hcd.o
drivers/usb/host/ehci-sh.c: In function ‘ehci_hcd_sh_probe’:
drivers/usb/host/ehci-sh.c:104: warning: ‘pdata’ may be used uninitialized in this function

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-14 17:13:34 -07:00
..
whci
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2012-05-22 19:22:50 -07:00
Makefile
alchemy-common.c
bcma-hcd.c
ehci-atmel.c
ehci-au1xxx.c
ehci-cns3xxx.c
ehci-dbg.c
ehci-fsl.c USB: ehci-fsl: Use usb_put_transceiver instead of put_device 2012-05-14 08:49:50 -07:00
ehci-fsl.h
ehci-grlib.c
ehci-hcd.c USB: fix PS3 EHCI systems 2012-06-13 17:24:54 -07:00
ehci-hub.c
ehci-ixp4xx.c
ehci-lpm.c
ehci-ls1x.c
ehci-mem.c
ehci-msm.c
ehci-mv.c
ehci-mxc.c
ehci-octeon.c
ehci-omap.c Fix OMAP EHCI suspend/resume failure (i693) 2012-06-13 17:36:22 -07:00
ehci-orion.c
ehci-pci.c USB: add NO_D3_DURING_SLEEP flag and revert 151b612847 2012-06-13 13:11:39 -07:00
ehci-platform.c USB: ehci-platform: remove update_device 2012-05-18 16:37:55 -07:00
ehci-pmcmsp.c
ehci-ppc-of.c
ehci-ps3.c
ehci-q.c
ehci-s5p.c
ehci-sched.c USB: EHCI: improve full-speed isochronous scheduling routine 2012-05-14 12:50:22 -07:00
ehci-sead3.c usb: host: mips: sead3: Fix for big endian. 2012-05-11 15:17:30 -07:00
ehci-sh.c usb: ehci-sh: fix illegal phy_init() running when platform_data is NULL 2012-06-14 17:13:34 -07:00
ehci-spear.c
ehci-sysfs.c
ehci-tegra.c arm-soc: driver specific updates 2012-05-26 12:22:27 -07:00
ehci-vt8500.c
ehci-w90x900.c
ehci-xilinx-of.c USB: EHCI: Fix build warning in xilinx ehci driver 2012-06-13 17:24:54 -07:00
ehci-xls.c
ehci.h Revert "USB: EHCI: work around bug in the Philips ISP1562 controller" 2012-05-21 08:54:43 -07:00
fhci-dbg.c
fhci-hcd.c
fhci-hub.c
fhci-mem.c
fhci-q.c
fhci-sched.c
fhci-tds.c
fhci.h
fsl-mph-dr-of.c
hwa-hc.c
imx21-dbg.c
imx21-hcd.c
imx21-hcd.h
isp116x-hcd.c
isp116x.h
isp1362-hcd.c
isp1362.h
isp1760-hcd.c
isp1760-hcd.h
isp1760-if.c
octeon2-common.c
ohci-at91.c
ohci-au1xxx.c
ohci-cns3xxx.c
ohci-da8xx.c
ohci-dbg.c
ohci-ep93xx.c
ohci-exynos.c
ohci-hcd.c
ohci-hub.c USB: ohci-hub: Mark ohci_finish_controller_resume() as __maybe_unused 2012-06-13 17:26:11 -07:00
ohci-jz4740.c
ohci-mem.c
ohci-nxp.c
ohci-octeon.c
ohci-omap.c USB 3.5-rc1 pull request 2012-05-22 15:50:46 -07:00
ohci-omap3.c
ohci-pci.c
ohci-platform.c
ohci-pnx8550.c
ohci-ppc-of.c
ohci-ppc-soc.c
ohci-ps3.c
ohci-pxa27x.c
ohci-q.c
ohci-s3c2410.c
ohci-sa1111.c
ohci-sh.c
ohci-sm501.c
ohci-spear.c
ohci-tmio.c
ohci-xls.c
ohci.h
oxu210hp-hcd.c
oxu210hp.h
pci-quirks.c
pci-quirks.h
r8a66597-hcd.c Revert "usb: move struct usb_device->children to struct usb_hub_port->child" 2012-05-14 09:20:37 -07:00
r8a66597.h
sl811-hcd.c
sl811.h
sl811_cs.c
ssb-hcd.c
u132-hcd.c
uhci-debug.c
uhci-grlib.c
uhci-hcd.c
uhci-hcd.h
uhci-hub.c
uhci-pci.c
uhci-q.c
xhci-dbg.c
xhci-ext-caps.h
xhci-hub.c xhci: Add roothub code to set U1/U2 timeouts. 2012-05-18 15:41:52 -07:00
xhci-mem.c xhci: Don't free endpoints in xhci_mem_cleanup() 2012-06-13 16:37:30 -07:00
xhci-pci.c xhci: Add Intel U1/U2 timeout policy. 2012-05-18 15:42:04 -07:00
xhci-plat.c
xhci-ring.c xhci: Some Evaluate Context commands must succeed. 2012-05-18 15:42:00 -07:00
xhci.c xHCI: Increase the timeout for controller save/restore state operation 2012-06-13 16:39:38 -07:00
xhci.h xhci: Add Intel U1/U2 timeout policy. 2012-05-18 15:42:04 -07:00