diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-09-19 03:22:39 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-05 10:44:01 +0300 |
commit | 3a02f8cb556402a81028469be9cf17bb3a0542cf (patch) | |
tree | c540113d3aaf39acd6c37fa09c4722aca665f4b7 /fs/cifs | |
parent | 22338c55658d888326bd1998f8d4328c76809053 (diff) | |
download | linux-3a02f8cb556402a81028469be9cf17bb3a0542cf.tar.xz |
PM: core: Fix device_pm_check_callbacks()
commit 157c460e10cb6eca29ccbd0f023db159d0c55ec7 upstream.
The device_pm_check_callbacks() function doesn't check legacy
->suspend and ->resume callback pointers under the device's
bus type, class and driver, so in some cases it may set the
no_pm_callbacks flag for the device incorrectly and then the
callbacks may be skipped during system suspend/resume, which
shouldn't happen.
Fixes: aa8e54b55947 (PM / sleep: Go direct_complete if driver has no callbacks)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions