r8152: fix accessing unset transport header
[platform/kernel/linux-starfive.git] / drivers / scsi / scsi_lib.c
index e9db7da..6ffc9e4 100644 (file)
@@ -779,7 +779,7 @@ static void scsi_io_completion_action(struct scsi_cmnd *cmd, int result)
                                        action = ACTION_DELAYED_RETRY;
                                        break;
                                case 0x0a: /* ALUA state transition */
-                                       blk_stat = BLK_STS_AGAIN;
+                                       blk_stat = BLK_STS_TRANSPORT;
                                        fallthrough;
                                default:
                                        action = ACTION_FAIL;