]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/scsi/scsi_lib.c
scsi: core: reset host byte in DID_NEXUS_FAILURE case
[mirror_ubuntu-bionic-kernel.git] / drivers / scsi / scsi_lib.c
index f75330d1430e132a46f2c52c7a6208e05e45bc86..ea6aad9743e3850b5b87747fd026e01a989e77e4 100644 (file)
@@ -734,6 +734,7 @@ static blk_status_t __scsi_error_from_host_byte(struct scsi_cmnd *cmd,
                set_host_byte(cmd, DID_OK);
                return BLK_STS_TARGET;
        case DID_NEXUS_FAILURE:
+               set_host_byte(cmd, DID_OK);
                return BLK_STS_NEXUS;
        case DID_ALLOC_FAILURE:
                set_host_byte(cmd, DID_OK);