From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.6266.1646126386729812009 for ; Tue, 01 Mar 2022 01:19:46 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=EyFZt+dV; spf=pass (domain: intel.com, ip: 192.55.52.115, 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=1646126386; x=1677662386; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=2QTJgAFIwrBqy8SFVPFblrwU4iiKiSqAuKhTb7mSecw=; b=EyFZt+dVDvgvUpthScogTFGiY761hFOJ1UQy1LpFrkmzoqkT/Qqu82pK /yPNYiAoqIaDQgZPh6lW7ott43xBeh0RXEmfjx/l7ztsT65dt2YhzHH/J 2IJJo5klfEsTDSwCBDtsIFVAoKOasGXbjZp+MIZXms/lFZlnNocS+Xx6H xllSSTNcwcGrtU8GH1HW2QFbCVD/y8Lt9Rg57FN5bnvknxwfBkljP04Vl mQr/9FwlXPTG5qTIzZEdhq0kUZPin5QrZLy8OAHfAAfYX/KmtDwR1R2C+ wWv9HP7h8LQOsJwBdLsuUcstwXUK625zovLmHFHJPlZutQX/+QGhdjHC9 w==; X-IronPort-AV: E=McAfee;i="6200,9189,10272"; a="253286501" X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="253286501" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 01:19:46 -0800 X-IronPort-AV: E=Sophos;i="5.90,145,1643702400"; d="scan'208";a="708986764" Received: from guominji-mobl1.ccr.corp.intel.com ([10.238.15.53]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 01:19:45 -0800 From: "Guomin Jiang" To: devel@edk2.groups.io Subject: [PATCH v2 0/2] Avoid Emulator Segmentation fault Date: Tue, 1 Mar 2022 17:18:48 +0800 Message-Id: <20220301091850.828-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 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 | 11 ++++++----- .../Console/GraphicsConsoleDxe/GraphicsConsole.c | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) -- 2.35.1.windows.2