]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: phy: mxs: suspend to RAM causes NULL pointer dereference
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 15 Jun 2015 04:37:00 +0000 (04:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:05 +0000 (09:29 -0700)
commitcc4c7d238d166b4e92878a113f00f7e6d4044041
tree1d745abea79cec6b14d2d32d53f554e2e1d8023c
parentd1221a608bd19cc6b539cffacfad3e104fcff0ef
usb: phy: mxs: suspend to RAM causes NULL pointer dereference

commit 543aa4867d4a2dff5fc11e1b688197ee3bad7f89 upstream.

Triggering suspend to RAM via sysfs on a i.MX28 causes a NULL pointer
dereference. This patch avoids the oops in mxs_phy_get_vbus_status()
by aborting since there is no syscon available.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: efdbd3a5d6e ("usb: phy: mxs: do not set PWD.RXPWD1PT1 for low speed connection")
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-mxs-usb.c