]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: cdc-acm: fix runtime PM imbalance at shutdown
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:45 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:09 +0000 (15:04 -0700)
commit5292afa657d0e790b7479ad8eef9450c1e040b3d
tree46a9bbf25625e66c77922f08e61ed68ebabc2374
parente4c36076c2a6195ec62c35b03c3fde84d0087dc8
USB: cdc-acm: fix runtime PM imbalance at shutdown

Make sure only to decrement the PM counters if they were actually
incremented.

Note that the USB PM counter, but not necessarily the driver core PM
counter, is reset when the interface is unbound.

Fixes: 11ea859d64b6 ("USB: additional power savings for cdc-acm devices
that support remote wakeup")

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c