Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1317641imm; Fri, 14 Sep 2018 15:33:03 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda6AsMTR1S86ax8NFwHWDbL+XWxu7pOc6/97KOwlydvq+elLBSQRBTbCwqhPjpbnv89tW9o X-Received: by 2002:a62:6547:: with SMTP id z68-v6mr14470387pfb.20.1536964383306; Fri, 14 Sep 2018 15:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536964383; cv=none; d=google.com; s=arc-20160816; b=H2kqr7tp9LVkKy9PuYmz9Bz4anDCTkUsYs5LsirXG87ZymwdqRfaeUD4w8cuvSWyDK CGnMTBu5ktj9PuU1OlLAQd0jd59D7xwngtmX/f7RJcbVCdNI4+HIn+/OkqAOu3m7vmH2 nQbgCFaRrT4bBWlbcG1zutt9pSiRJmdYqdRCCPHjGl5HigOlfqRyy+RUiTCeT085a499 MVyWx+0j3BQGhNOFjKOCyBIguJGhnEEs++2QBM8eSThJ4A1SP9JsIgQEJVMa2tibT20V TRQB+WI+yPqIViSS21qrDt45LopIcbdTiCWZnNxTtQxvsmvayABctu6qqzC4mfjIH1BU mAiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qjV3sLGrDIyXaqqrrV8lczttNGVu1pnLm5C4sO5VBa8=; b=GVGRjMzR+cPfoo8szgcKKfIVmXOkUijAFV0zoWLKDvEIegKJCsgB/nO1t6zyR7yTaI sTDK70VrRB6cOUgZ+lTIsQfVl8MqbAO9vHCtUZ22ifdLrngkkxBFllZQOvUOaLkXCZuS /3fWGMDSisVFv1jE4qyqn+r21cefjAsdA2znUNxYuo5bmWuVWSgWBB5hlE7IRD/QtGuq QCHF17DyauTJ9XL07jc+zDKK70DAnJGhvJOn7kv3O0m2UTrgQKj4bQGGtwo1wljKkgzq eBpK3lVodE5CPOfRG0d4NvMF8iJQeIy9p7zErt538C9Q0hyJdUsqWR+s7pviRZ8EuXKd 6Zfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ttpY+eSj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9-v6si8238271pgi.12.2018.09.14.15.32.46; Fri, 14 Sep 2018 15:33:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ttpY+eSj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728064AbeIODtA (ORCPT + 99 others); Fri, 14 Sep 2018 23:49:00 -0400 Received: from mail-sn1nam01on0049.outbound.protection.outlook.com ([104.47.32.49]:37216 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728031AbeIODs7 (ORCPT ); Fri, 14 Sep 2018 23:48:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qjV3sLGrDIyXaqqrrV8lczttNGVu1pnLm5C4sO5VBa8=; b=ttpY+eSjFzAki2PmLE19G7JisVfjHLgxGS9R4efGzD5CYE6dFUWVjjY8exLfaPjOXDCzJlxD045yxs66jiWHhNAwoqABKykYno9jCmAIfADX+KPrF01C/H3PojEwkt+p/GlEyKpq1MBFSaEXELNhzUoBDMl+MeThOAsKrzqYjfs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Janakarajan.Natarajan@amd.com; Received: from gi-joe.amd.com (165.204.77.1) by BYAPR12MB2725.namprd12.prod.outlook.com (2603:10b6:a03:61::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Fri, 14 Sep 2018 22:32:29 +0000 From: Janakarajan Natarajan To: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tom Lendacky , Gary Hook , Herbert Xu , "David S . Miller" , Brijesh Singh , Janakarajan Natarajan , Dan Carpenter Subject: [PATCH 1/2] Fix static checker warning Date: Fri, 14 Sep 2018 17:32:03 -0500 Message-Id: <31c49295223e51f5c1c4e36e7a09fe100dab1711.1536959537.git.Janakarajan.Natarajan@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR0101CA0021.prod.exchangelabs.com (2603:10b6:910:3c::34) To BYAPR12MB2725.namprd12.prod.outlook.com (2603:10b6:a03:61::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 001af795-8b6d-4d8b-65f5-08d61a91f4fa X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:BYAPR12MB2725; X-Microsoft-Exchange-Diagnostics: 1;BYAPR12MB2725;3:biu2+Q+PdOuMMthHIwR9rgO0/g4JolzGwI0Hng7Ctd+hfBm0hbshY14gSFker/XwfWiRohGVM6XBpTmqXmiUa1znx6dNleexyg1dtiwJWv64i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fXsLUlGKcvb3Puu7vGiiijNNrP40hLf9lpWtYiVXmUTXQ2gCEvZlYAxT4FzdPV9zYhLmvLZfTLktpLO3XgSB37oUmkQNtDsgAuTnDEWgv/IKgLM8xLZ33b/f2sq8Z6e0CtcF3fxe067ZaHBQUOMfIX8HaLSeBCaqNxx7rG+n7deiwlsPRTCb3TFBvFKxzvfXLD/HxL4ZTchOVa8mM4Zx8LrLT0d2Yit68YFhApvBe9vnD;4:nC+FlL4O1+6H5nLAKDC3pFI96dQKEdScQfGpd/hGyczXfM/KmN6noVXbpvggsmzMn8FxJVv8EsscRL8/RpZV3MEtFMDSYKhUpZ4G24Y66tNlCwTz2o/MERM+axktWTrOchbRNJlcecFuxPrpzrLC7Wp2r7XqH99Gz3waQoBv9xZB+q9w+ENEwL7geJ2nRUjeQC37aoUdnujIKx2IY4mgpb8rw4owZvf9MBXvtW6kYlF9qsF+3FKJKLXcTzpoWSTOw9PjCRBgeRoCvuYnrm6dgapsYPF2IxaZgPMzqoYMooJZ6hJJDJphdKcaql0yIhxHNw4xxey13fI3pIgZSzp2KiA5JYzMh88EojcOW2/t2wU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(146099531331640); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(93006095)(93001095)(3002001)(10201501046)(3231348)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:BYAPR12MB2725;BCL:0;PCL:0;RULEID:;SRVR:BYAPR12MB2725; X-Forefront-PRVS: 07954CC105 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39860400002)(366004)(136003)(199004)(189003)(6116002)(11346002)(6666003)(3846002)(305945005)(14444005)(72206003)(52116002)(26005)(7696005)(316002)(16586007)(7736002)(54906003)(5660300001)(105586002)(486006)(446003)(53416004)(106356001)(476003)(2616005)(118296001)(956004)(6486002)(4326008)(50466002)(48376002)(47776003)(66066001)(81156014)(81166006)(76176011)(386003)(97736004)(186003)(2906002)(86362001)(16526019)(25786009)(53936002)(51416003)(68736007)(8936002)(50226002)(478600001)(8676002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR12MB2725;H:gi-joe.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BYAPR12MB2725;23:w2n6m8Cy0X2WQXP43cZGVdPF6Frj88NNTZXZ/fvu8?= =?us-ascii?Q?D4eiEY/8+piBlOAsleZjkIrRKOCFo9gfP9ElxwlNOxu82/pFRm9WeTLwAusz?= =?us-ascii?Q?fK9kBG3QrOdodhOLE06tUJjTy2txhJS5AihY48WPam/xj0wNmqOEexxPbgyz?= =?us-ascii?Q?W4sDGmP14KRmdniIuEdQrxF9zstp6NfXTuy9ijx3KHk6SsihWki/LzySrHF8?= =?us-ascii?Q?0HtYPiDjL2DMTIKl6kz6wAe01rDP8OwxnJFCady/kkAr4/c3c4WrKJdyr4H1?= =?us-ascii?Q?8gVJkPwjNNNReS95P/LdOIRVVwPr7HwZSe+Pv9uGaSi0mwzvke74sBYclusX?= =?us-ascii?Q?yYA4e8wI7llNz+PCA8tZX7L4/1cWf6IjMEcPNtztby8wqqt+X/D7XHT+ohgJ?= =?us-ascii?Q?Hi+Y7Sq1NC9IyddTqE0iyPwCZt1235y1fCz4UWGxmbYb6p9wiY3nIAMnpk6w?= =?us-ascii?Q?xUAGCcrYf+BZVsSdWBV3D0MlMthDhd5FOWheAS2EkStsxCiwNsPexT4ohE68?= =?us-ascii?Q?nUXrHByPMyTPzMBu8p8KBbG9/TVJQb6P0ngNV1PZ3cziSYJkFqX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6TY1UeGxRzsl4MRTs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BYAPR12MB2725;20:r2OAWR3cqRT/45OCtcr3JJ32wGks0JXPIGjJxBq1Yjcj6n+HUtGo9rj/aCH62xYFW5Yn75cLrDfYoS+axN+ljk6ga3WzY9lmXahMFl6McJyV5YdUp2gjL9aM2Rde7y3xj6TwDnMh+lPgBbsx4AlluAUM2o9P8gbthhX4j5DWAI1aDU17UXC8+bIjRn7sWNFlw8Edsx/ReAlPPMtqXIOPbuy/4RMcOT09ck84IzLClPcqGnXfI+VLHOW8VL8NJ79T X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 22:32:29.4299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 001af795-8b6d-4d8b-65f5-08d61a91f4fa X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2725 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Under certain configuration SEV functions can be defined as no-op. In such a case error can be uninitialized. Initialize the variable to 0. Cc: Dan Carpenter Reported-by: Dan Carpenter Signed-off-by: Janakarajan Natarajan --- drivers/crypto/ccp/psp-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/psp-dev.c b/drivers/crypto/ccp/psp-dev.c index 72790d8..f541e60 100644 --- a/drivers/crypto/ccp/psp-dev.c +++ b/drivers/crypto/ccp/psp-dev.c @@ -423,7 +423,7 @@ EXPORT_SYMBOL_GPL(psp_copy_user_blob); static int sev_get_api_version(void) { struct sev_user_data_status *status; - int error, ret; + int error = 0, ret; status = &psp_master->status_cmd_buf; ret = sev_platform_status(status, &error); -- 2.7.4