Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936409AbcJRPb3 (ORCPT ); Tue, 18 Oct 2016 11:31:29 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49760 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936080AbcJRPbG (ORCPT ); Tue, 18 Oct 2016 11:31:06 -0400 Date: Tue, 18 Oct 2016 08:30:24 -0700 From: tip-bot for Ivan Hu Message-ID: Cc: matt@codeblueprint.co.uk, linux-kernel@vger.kernel.org, ivan.khoronzhuk@linaro.org, hpa@zytor.com, mingo@kernel.org, peterz@infradead.org, torvalds@linux-foundation.org, ard.biesheuvel@linaro.org, ivan.hu@canonical.com, tglx@linutronix.de Reply-To: ard.biesheuvel@linaro.org, torvalds@linux-foundation.org, ivan.hu@canonical.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, ivan.khoronzhuk@linaro.org, matt@codeblueprint.co.uk, hpa@zytor.com, mingo@kernel.org, peterz@infradead.org In-Reply-To: <20161018143318.15673-6-matt@codeblueprint.co.uk> References: <20161018143318.15673-6-matt@codeblueprint.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] efi/efi_test: Fix uninitialized variable 'rv' Git-Commit-ID: 9c30a2199311df9a1f25d0586c96dfbb7e876cdf 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: 1620 Lines: 44 Commit-ID: 9c30a2199311df9a1f25d0586c96dfbb7e876cdf Gitweb: http://git.kernel.org/tip/9c30a2199311df9a1f25d0586c96dfbb7e876cdf Author: Ivan Hu AuthorDate: Tue, 18 Oct 2016 15:33:15 +0100 Committer: Ingo Molnar CommitDate: Tue, 18 Oct 2016 17:11:18 +0200 efi/efi_test: Fix uninitialized variable 'rv' Fix minor issue found by CoverityScan: 520 kfree(name); CID 1358932 (#1 of 1): Uninitialized scalar variable (UNINIT)17. uninit_use: Using uninitialized value rv. 521 return rv; 522} 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-6-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 348efc9..bb26e12 100644 --- a/drivers/firmware/efi/test/efi_test.c +++ b/drivers/firmware/efi/test/efi_test.c @@ -428,7 +428,7 @@ static long efi_runtime_get_nextvariablename(unsigned long arg) efi_guid_t *vd = NULL; efi_guid_t vendor_guid; efi_char16_t *name = NULL; - int rv; + int rv = 0; getnextvariablename_user = (struct efi_getnextvariablename __user *)arg;