Skip to content

Commit 5963dec

Browse files
oneukumgregkh
authored andcommitted
UAS: no use logging any details in case of ENODEV
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 <[email protected]> Cc: stable <[email protected]> Fixes: 326349f ("uas: add dead request list") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fdd1049 commit 5963dec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/storage/uas.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix,
190190
struct uas_cmd_info *ci = (void *)&cmnd->SCp;
191191
struct uas_cmd_info *cmdinfo = (void *)&cmnd->SCp;
192192

193+
if (status == -ENODEV) /* too late */
194+
return;
195+
193196
scmd_printk(KERN_INFO, cmnd,
194197
"%s %d uas-tag %d inflight:%s%s%s%s%s%s%s%s%s%s%s%s ",
195198
prefix, status, cmdinfo->uas_tag,

0 commit comments

Comments
 (0)