summaryrefslogtreecommitdiff
path: root/drivers/usb/usb-common.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 21:23:41 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-28 02:04:09 +0400
commit183a45087d126d126e8dd1d9b2602fc129dff9ad (patch)
tree39076939fe47eeeaf46f211c484ef843014d8e54 /drivers/usb/usb-common.c
parented797074031a37bb9bf4a70952fffc606b77274d (diff)
downloadlinux-183a45087d126d126e8dd1d9b2602fc129dff9ad.tar.xz
USB: cdc-acm: fix potential urb leak and PM imbalance in write
Make sure to check return value of autopm get in write() in order to avoid urb leak and PM counter imbalance on errors. Fixes: 11ea859d64b6 ("USB: additional power savings for cdc-acm devices that support remote wakeup") Cc: <stable@vger.kernel.org> # v2.6.27 Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/usb-common.c')
0 files changed, 0 insertions, 0 deletions