summaryrefslogtreecommitdiff
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-02 01:25:09 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-04-02 01:25:09 +0200
commitda259465d7526804b21d274281fb4d60b4216c82 (patch)
tree249a88bd9fa38079d3888d66d31826c43f21e718 /drivers/usb/core
parent07961ac7c0ee8b546658717034fe692fd12eefa9 (diff)
downloadlinux-3.10-da259465d7526804b21d274281fb4d60b4216c82.tar.gz
linux-3.10-da259465d7526804b21d274281fb4d60b4216c82.tar.bz2
linux-3.10-da259465d7526804b21d274281fb4d60b4216c82.zip
USB / PM: Don't try to hide PM QoS flags from usb_port_device_release()
Remove the call to dev_pm_qos_hide_flags(), added by commit 6e30d7cb "usb: Add driver/usb/core/(port.c,hub.h) files", from usb_port_device_release(), because (1) it is completely unnecessary (the flags have been removed already by the PM core during the unregistration of the device object) and (2) it triggers a NULL pointer dereference in sysfs_find_dirent() (dev->kobj.sd is NULL at this point). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/port.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/core/port.c b/drivers/usb/core/port.c
index 797f9d51473..65d4e55552c 100644
--- a/drivers/usb/core/port.c
+++ b/drivers/usb/core/port.c
@@ -67,7 +67,6 @@ static void usb_port_device_release(struct device *dev)
{
struct usb_port *port_dev = to_usb_port(dev);
- dev_pm_qos_hide_flags(dev);
kfree(port_dev);
}