Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936253AbcJRPbE (ORCPT ); Tue, 18 Oct 2016 11:31:04 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49730 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936080AbcJRPah (ORCPT ); Tue, 18 Oct 2016 11:30:37 -0400 Date: Tue, 18 Oct 2016 08:29:51 -0700 From: tip-bot for Ivan Hu Message-ID: Cc: torvalds@linux-foundation.org, tglx@linutronix.de, hpa@zytor.com, peterz@infradead.org, ard.biesheuvel@linaro.org, mingo@kernel.org, matt@codeblueprint.co.uk, ivan.khoronzhuk@linaro.org, ivan.hu@canonical.com, linux-kernel@vger.kernel.org Reply-To: ivan.khoronzhuk@linaro.org, linux-kernel@vger.kernel.org, ivan.hu@canonical.com, matt@codeblueprint.co.uk, mingo@kernel.org, peterz@infradead.org, ard.biesheuvel@linaro.org, tglx@linutronix.de, torvalds@linux-foundation.org, hpa@zytor.com In-Reply-To: <20161018143318.15673-5-matt@codeblueprint.co.uk> References: <20161018143318.15673-5-matt@codeblueprint.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi/efi_test: Fix uninitialized variable 'datasize' Git-Commit-ID: 46b9b7135332d1e2c54e853108a5088ab28f2165 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1764 Lines: 43 Commit-ID: 46b9b7135332d1e2c54e853108a5088ab28f2165 Gitweb: http://git.kernel.org/tip/46b9b7135332d1e2c54e853108a5088ab28f2165 Author: Ivan Hu AuthorDate: Tue, 18 Oct 2016 15:33:14 +0100 Committer: Ingo Molnar CommitDate: Tue, 18 Oct 2016 17:11:17 +0200 efi/efi_test: Fix uninitialized variable 'datasize' Fix minor issue found by CoverityScan: CID 1358931 (#1 of 1): Uninitialized scalar variable (UNINIT)9. uninit_use: Using uninitialized value datasize. 199 prev_datasize = datasize; 200 status = efi.get_variable(name, vd, at, dz, data); Signed-off-by: Ivan Hu Signed-off-by: Matt Fleming Cc: Ard Biesheuvel Cc: Ivan Khoronzhuk Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20161018143318.15673-5-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar --- drivers/firmware/efi/test/efi_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/test/efi_test.c b/drivers/firmware/efi/test/efi_test.c index ae51268..348efc9 100644 --- a/drivers/firmware/efi/test/efi_test.c +++ b/drivers/firmware/efi/test/efi_test.c @@ -155,7 +155,7 @@ static long efi_runtime_get_variable(unsigned long arg) { struct efi_getvariable __user *getvariable_user; struct efi_getvariable getvariable; - unsigned long datasize, prev_datasize, *dz; + unsigned long datasize = 0, prev_datasize, *dz; efi_guid_t vendor_guid, *vd = NULL; efi_status_t status; efi_char16_t *name = NULL;