From: Johan Hovold Date: Mon, 26 May 2014 17:23:41 +0000 (+0200) Subject: USB: cdc-acm: fix potential urb leak and PM imbalance in write X-Git-Tag: v3.2.61~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ddef05cc4fc70feb34fc0cd696edc55af6eccd4;p=pandora-kernel.git USB: cdc-acm: fix potential urb leak and PM imbalance in write commit 183a45087d126d126e8dd1d9b2602fc129dff9ad upstream. 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") Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: - Adjust context - Error/status variable is called rc, not stat] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed