From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by mx.groups.io with SMTP id smtpd.web11.11361.1674033245217213108 for ; Wed, 18 Jan 2023 01:14:05 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=hx9nz+9h; spf=pass (domain: flex--yuanyu.bounces.google.com, ip: 209.85.210.201, mailfrom: 3xljhywykbrefbr4fbx55x2v.t53uvcv2vu1j.x85b69.z5@flex--yuanyu.bounces.google.com) Received: by mail-pf1-f201.google.com with SMTP id k127-20020a628485000000b0058029fb70a3so15235570pfd.19 for ; Wed, 18 Jan 2023 01:14:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=WVBtYTF9Sg3yKe0FiEeiz7q7EwkJN5Q4PfXGUFO9hXA=; b=hx9nz+9hm4x/LWu99IW5axV6s4aUYRhDKeUvrA6JydrE1Qfcb2kf6Ybd6xxkhI6Hax x6FUL98rmEvnXd+8EZlcx2kzW1aIwFJqVrJL6RB2eNnfgnhUCkgAl/gr27BaRdifTaBk RGZMtJXUpAIcCJHxGHCW3VvOqYMKFpKo233Z+jUgfzOnJmogEdqV0lzoaD2SjYIX/EaW 0HUw8CgPghuSfc5fm+0wIHZaSs6bSYIMC5iCFS4epPyw42XZKOVIoZwUssPnHWCxPrzE nrQJbXoPB3VPHAxPQgkpp3UPcu8ZIJmtb8X0+xjmynYee/LxchHFgL9BQQWTddee2f0p 2XDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=WVBtYTF9Sg3yKe0FiEeiz7q7EwkJN5Q4PfXGUFO9hXA=; b=f0jRzHfDYBP9hrJ2oOW1h6ieuKyIFnj6C8NAUiYuSO02NP/cgMjEQRvo3Y5Ac/vpb/ Txzeuf8E7vF8ULeTWmFCZ+HLNUHKv4f+Bw3lOAF6NiwKrGmpLV3pSY6AULCExInKoaw7 gLUU1N8uodQhY7Iu2hADFlx2V5zonb6FeYarrpxwYXWt7t4Wohn0D19IjCxAPM0INtjl VTLdBaezXo9hoowAN0DrAexf8Ydhcq5KkhJuwdNtvIZ8E3RchdxDsdmhu1MdfEnjkya6 +b5N5UbSidkOhBdYJbCeTbfu5dc74SrpaVLNn9LE4wQsLKwzx8/STZ7QmJ8jcarx+AcW v8Uw== X-Gm-Message-State: AFqh2kqcHIV9Fz9EGHm1JlMIChhj3UTCsA/yK5JQc2IWAntMOaJVArNa NBBxrX+JDhMb6dmCVzkDL3/l22/8CGOYAXjw8vzMEmD8kP8azGCwbuBo1JoToMUAO3Q3EFIEcMX wVGUEWXMkkXEulD0TQ0JLuHifIkoEAFZdyN22QW3qrHU6O8RJWqMeMaF2onA= X-Google-Smtp-Source: AMrXdXuVTY3SDIS6jCvDiHu8+jwykRRAjK+m48aEtEGYjQ2AHdQOh3rFKLDzTH6x+Y8ibgcmstP7//mES/k= X-Received: from yuanyu.kir.corp.google.com ([2620:15c:29:204:1cbf:6a8c:60ac:298c]) (user=yuanyu job=sendgmr) by 2002:a62:188b:0:b0:582:d289:eaeb with SMTP id 133-20020a62188b000000b00582d289eaebmr549728pfy.24.1674033244343; Wed, 18 Jan 2023 01:14:04 -0800 (PST) Date: Wed, 18 Jan 2023 01:14:00 -0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Message-ID: <20230118091402.931498-1-yuanyu@google.com> Subject: [PATCH v1 0/2] Fix boot failure caused by loop abortion From: "Yuan Yu" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Liming Gao , Hao A Wu , Ray Ni , Sivaparvathi chellaiah Content-Type: text/plain; charset="UTF-8" A goto following an error check may cause boot failure, because the function that returns the status is supposed to be called for all the possible Puns in the SCSI channel. This patch removes the check and the goto so that the while loop will continue to run until all devices are scanned. The changes can be seen at: https://github.com/yyu/edk2/tree/scsi_bus_fix_v1 Cc: Ard Biesheuvel Cc: Liming Gao Cc: Hao A Wu Cc: Ray Ni Cc: Sivaparvathi chellaiah Yuan Yu (2): MdeModulePkg: Fix bug in ScsiBusDxe/ScsiBus.c MdeModulePkg: Clean up unused Status. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.39.0.314.g84b9a713c41-goog