From patchwork Thu Mar 24 20:30:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Duran, Leo" X-Patchwork-Id: 64424 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp881961lbc; Thu, 24 Mar 2016 13:31:44 -0700 (PDT) X-Received: by 10.98.64.4 with SMTP id n4mr15635831pfa.58.1458851497435; Thu, 24 Mar 2016 13:31:37 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id kk8si6550515pab.26.2016.03.24.13.31.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Mar 2016 13:31:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@amdcloud.onmicrosoft.com; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id F37581A1F03; Thu, 24 Mar 2016 13:31:53 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0644.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc09::644]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8C4711A1EFD for ; Thu, 24 Mar 2016 13:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FN/DC31Vrf5pFOQDrrfjeOFdDe3VYRJYrXSoAX8a8Hw=; b=DluRfA9gvK5SIHvHz2AoejFdBF1SjKN/kIhd62feaytcVXmEiVg8ghbSn/+mAF7fLNhYAoDqKxCbwnuiAb1HsZMCck6+uF5a9qkaSxk4U+TryCQVE1kooqL3PeEWtwmlgMPmQxATjsxo8iCMnh/gjJm+ts/4K+uCTqoEv/UttJg= Authentication-Results: lists.01.org; dkim=none (message not signed) header.d=none; lists.01.org; dmarc=none action=none header.from=amd.com; Received: from leduran-Precision-WorkStation-T5400.vendor.access.domain (165.204.77.2) by BLUPR12MB0516.namprd12.prod.outlook.com (10.162.92.18) with Microsoft SMTP Server (TLS) id 15.1.434.16; Thu, 24 Mar 2016 20:31:24 +0000 From: Leo Duran To: Date: Thu, 24 Mar 2016 15:30:11 -0500 Message-ID: <1458851413-26577-7-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1458851413-26577-1-git-send-email-leo.duran@amd.com> References: <1458851413-26577-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.2] X-ClientProxiedBy: SN1PR07CA0021.namprd07.prod.outlook.com (25.162.170.159) To BLUPR12MB0516.namprd12.prod.outlook.com (25.162.92.18) X-MS-Office365-Filtering-Correlation-Id: 21db1c14-09a7-4f24-491a-08d3542344e2 X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0516; 2:NvpudZ7q8RJzbHIAPEG9XGiR1mr7WYGxyoanZcrmjJrLT2K5HkRpJdOKrqJyxqpV7Q7faeFj9aHN+at+KDiA6Rn3YMN6oP08IXYwpoXiTtu4Wy+YXGyC9cqrED02z+juK3Mk1YYDLli/XXNUIaAb7wlytga3OPu7Cws+1j0AOj43KF8ABN8bXP32j/itkn7Q; 3:oU7ofpYvJBjxEifDvpNjgb884Vbfvw/xglgUn/2AsSxyR8l7JdfARNFusx4562lJiL7WK8ny0J7d/u7/1DVOfg6oCaYCLsk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gefh6v48suiHD4uKbWR597vU0PiAfBzB0y/r+PmWmp+XT1VWJzt0WkRx6rF0QXvVhyvfujTHTnqyw/DmatDbT/zPV7Qz3E1pr62YLXirsMtmw/7RyfIv; 4:g3T97Gr1b5ZI85FXTmP/CBU7PZd2it7SmKeJCpJAFEFNrU52qynQUdLuUPCnj2EhoS6oWFZIO9DRfyx6nXScWZv0Po6c49rAL0Sa1rD3tnGbTOdkgZ2j6pdHvUTHdMGeeEJrNnnzfMlrzJMOKpX8U8jtvFCllmL82yu6LkNrFO57g5ViNBsqsV5CRZv0Yb59O6akYcMgzYLUO/06vfsTqpDHH7olVSvQAqT5Fb7kuCxZHu1k+wJz/775/ZQmS3DNB0F+mTmOGuhqQn2MJoMONxrU9z0VSmZtExulaSuX7/nH8UfGi/AHhfUQy9/8Xrw30XpXjutycYmaTvkUOOPB8EfDaH3kVyGRxq1N8FuX3+v7PQTn6YZwpK21dFmUgiNH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR12MB0516; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0516; X-Forefront-PRVS: 0891BC3F3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(229853001)(2950100001)(2351001)(586003)(86362001)(2906002)(3846002)(77096005)(6116002)(19580395003)(47776003)(19580405001)(5008740100001)(33646002)(5003940100001)(66066001)(1096002)(5004730100002)(4326007)(76176999)(50986999)(189998001)(36756003)(42186005)(110136002)(50466002)(48376002)(81166005)(50226001)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0516; H:leduran-Precision-WorkStation-T5400.vendor.access.domain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0516; 23:7b7o68tUrtME2LXtMQkUMFRX5Cpw5vR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W2vv0f2wHwVZjDTt7wGgoTg4kd93iUTvYp3xskT4OQcIu9MVqAGFDic2DmXqY+R0HiLvqnTsXRtRW5wPlCSC9C8MQzU=; 20:bAlnb06FG367fEzGaAWCqHNpVUSFe89HgpfuB5Jcwp1GTqPf4j4kTwLlD3KSKjn/7AxoCoKdKs0fYQhdfxneyJV54dJiDD9s4AzQSnl/Iv+SSnYojjJMGTkGMqXm9aNMNWtWqC5LE28d/vqhnuMOBTqcFUfxWfjstD/rNVEpeVGQ+9JEWwyTVMBzAF01JN24V9edlyfR7SXkpTeSpABrhakJpa6kSeB5TwGInR3rdm5Flo4rX0pBD5yw1t9e+Yix X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2016 20:31:24.2828 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0516 Subject: [edk2] [PATCH] EmbeddedPkg/RTC: use returned status at init-time X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Leo Duran , leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leo Duran --- EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Ard Biesheuvel diff --git a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c index 80af8cf..f1e067c 100644 --- a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c +++ b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c @@ -139,7 +139,10 @@ InitializeRealTimeClock ( { EFI_STATUS Status; - LibRtcInitialize (ImageHandle, SystemTable); + Status = LibRtcInitialize (ImageHandle, SystemTable); + if (EFI_ERROR (Status)) { + return Status; + } SystemTable->RuntimeServices->GetTime = GetTime; SystemTable->RuntimeServices->SetTime = SetTime;