summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorEugeniu Rosca <erosca@de.adit-jv.com>2020-02-26 18:50:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-11 07:53:11 +0100
commit480dc952d20a7c6d23a602fdae33a7e1b7812fa7 (patch)
treee9cb24f65cf5fd8e51b819367458806b645b8e58 /fs
parentefccc9c0f73e7110fcf9f2a1c66bd35a783613cb (diff)
usb: core: port: do error out if usb_autopm_get_interface() fails
commit 1f8b39bc99a31759e97a0428a5c3f64802c1e61d upstream. Reviewing a fresh portion of coverity defects in USB core (specifically CID 1458999), Alan Stern noted below in [1]: On Tue, Feb 25, 2020 at 02:39:23PM -0500, Alan Stern wrote: > A revised search finds line 997 in drivers/usb/core/hub.c and lines > 216, 269 in drivers/usb/core/port.c. (I didn't try looking in any > other directories.) AFAICT all three of these should check the > return value, although a error message in the kernel log probably > isn't needed. Factor out the usb_port_runtime_{resume,suspend}() changes into a standalone patch to allow conflict-free porting on top of stable v3.9+. [1] https://lore.kernel.org/lkml/Pine.LNX.4.44L0.2002251419120.1485-100000@iolanthe.rowland.org Fixes: 971fcd492cebf5 ("usb: add runtime pm support for usb port device") Cc: stable@vger.kernel.org # v3.9+ Suggested-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20200226175036.14946-3-erosca@de.adit-jv.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions