aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2020-04-15 16:17:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-29 16:31:33 +0200
commit9ca6a4d89872d6c1abb41ded2aa139b703d67ab2 (patch)
tree861e4273c2681fca5cf88018f968f96ea2a4e72a
parent465f0c0b5306bcae604216dd4363d003554f886c (diff)
downloadlinux-yocto-9ca6a4d89872d6c1abb41ded2aa139b703d67ab2.tar.gz
linux-yocto-9ca6a4d89872d6c1abb41ded2aa139b703d67ab2.tar.bz2
linux-yocto-9ca6a4d89872d6c1abb41ded2aa139b703d67ab2.zip
UAS: no use logging any details in case of ENODEV
commit 5963dec98dc52d52476390485f07a29c30c6a582 upstream. Once a device is gone, the internal state does not matter anymore. There is no need to spam the logs. Signed-off-by: Oliver Neukum <oneukum@suse.com> Cc: stable <stable@vger.kernel.org> Fixes: 326349f824619 ("uas: add dead request list") Link: https://lore.kernel.org/r/20200415141750.811-1-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/storage/uas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c
index 62ca8e29da48..f7778cf6e436 100644
--- a/drivers/usb/storage/uas.c
+++ b/drivers/usb/storage/uas.c
@@ -190,6 +190,9 @@ static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix,
struct uas_cmd_info *ci = (void *)&cmnd->SCp;
struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp;
+ if (status == -ENODEV) /* too late */
+ return;
+
scmd_printk(KERN_INFO, cmnd,
"%s %d uas-tag %d inflight:%s%s%s%s%s%s%s%s%s%s%s%s ",
prefix, status, cmdinfo->uas_tag,