From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.4990.1646204359724057108 for ; Tue, 01 Mar 2022 22:59:19 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=DSD0KDpE; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: guomin.jiang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646204359; x=1677740359; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=8aA7zJx9aUjoMq5U7XQXjCU6FGGIyrWilsYeew4UwL8=; b=DSD0KDpEt0IlqE2QmN67pemshTQDBipDszeybV7JXqTdPOgB4nurFGUP Lcg/Uh94yOYLdll1spmdlJjrZTelkFBZnPXyGtXRzhBq9DzOavwv3NpCJ v5i4HCgmB8+z1mffTpyNY/Ke4/il94Cq0OunTfGZeSTKmYAajbUNxQwgQ TuKpBqfuFa+O9CQcIpJw9YMhHhMc7604zMoKfpBp5nXb0vtwJewqd+VOK eh2HcqpA6yokn1Ww1fN7vlRkCZTyqUhQBXrS/GHqQT9f1YDXqgXK6Sen3 Szdkdn1o4Fo1D0WcqRAsAYoLg+NcAHEQGy2DbGHWrYNditm1VgiRrSHA7 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="253250010" X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="253250010" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 22:59:18 -0800 X-IronPort-AV: E=Sophos;i="5.90,148,1643702400"; d="scan'208";a="510890871" Received: from guominji-mobl1.ccr.corp.intel.com ([10.238.15.53]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 22:59:17 -0800 From: "Guomin Jiang" To: devel@edk2.groups.io Subject: [PATCH v3 0/2] Avoid Emulator Segmentation fault Date: Wed, 2 Mar 2022 14:58:54 +0800 Message-Id: <20220302065856.727-1-guomin.jiang@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2668 Correct the logic to handle the case that XServer not present to avoid Segmentation fault V3: Fix uncrustify error V2: Fix typo error. Guomin Jiang (2): MdeModulePkg/GraphicsConsoleDxe: Check status to make sure no error EmulatorPkg/EmuGopDxe: Set ModeInfo after Open successfully EmulatorPkg/EmuGopDxe/GopScreen.c | 13 +++++++------ .../Console/GraphicsConsoleDxe/GraphicsConsole.c | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) -- 2.35.1.windows.2