summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 17:23:33 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 22:04:08 (GMT)
commitc14829fad88dbeda57253590695b85ba51270621 (patch)
tree911ee5af3c0c0df403ae5346bf6e442a2c32406c /crypto/Kconfig
parentb0a9aa6da8088b722326a858ab572a13b5b6f9cb (diff)
downloadlinux-c14829fad88dbeda57253590695b85ba51270621.tar.xz
USB: serial: fix potential runtime pm imbalance at device remove
Only call usb_autopm_put_interface() if the corresponding usb_autopm_get_interface() was successful. This prevents a potential runtime PM counter imbalance should usb_autopm_get_interface() fail. Note that the USB PM usage counter is reset when the interface is unbound, but that the runtime PM counter may be left unbalanced. Also add comment on why we don't need to worry about racing resume/suspend on autopm_get failures. Fixes: d5fd650cfc7f ("usb: serial: prevent suspend/resume from racing against probe/remove") Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions