]> git.baikalelectronics.ru Git - kernel.git/commit
USB / PM: Don't try to hide PM QoS flags from usb_port_device_release()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Apr 2013 23:25:09 +0000 (01:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Apr 2013 23:25:09 +0000 (01:25 +0200)
commit1685d10b046d4c7548e925ad956233b362ff832c
tree249a88bd9fa38079d3888d66d31826c43f21e718
parentf64b98f6321b322ab9cd9e57f5d96e9055875194
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 930c08b1
"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>
drivers/usb/core/port.c