mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
USB: cdc-acm: fix potential urb leak and PM imbalance in write
commit183a45087dupstream. Make sure to check return value of autopm get in write() in order to avoid urb leak and PM counter imbalance on errors. Fixes:11ea859d64("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>
This commit is contained in:
parent
768df96965
commit
88da9d741b
1 changed files with 7 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue