lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <B8B7C690-0EDE-4545-AEC1-D1B227B636C1@oracle.com>
Date:   Fri, 30 Oct 2020 10:56:19 -0500
From:   John Donnelly <john.p.donnelly@...cle.com>
To:     linux-kernel@...r.kernel.org
Cc:     trix@...hat.com, andriy.shevchenko@...ux.intel.com
Subject: Re: [PATCH 4.14 ] platform/x86: Corrects warning: missing braces
 around initializer



> On Oct 30, 2020, at 10:52 AM, john.p.donnelly@...cle.com wrote:
> 
> From: John Donnelly <john.p.donnelly@...cle.com>
> 
> The assignment statement of a local variable "struct tp_nvram_state s[2] = {0}; "
> is not valid for all versions of compilers (UEK6 on OL7).
> 
> Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi: initialize tp_nvram_state variable")
> 
> Signed-off-by: John Donnelly <john.p.donnelly@...cle.com>
> ---
> drivers/platform/x86/thinkpad_acpi.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> index ffaaccded34e..c41ac0385304 100644
> --- a/drivers/platform/x86/thinkpad_acpi.c
> +++ b/drivers/platform/x86/thinkpad_acpi.c
> @@ -2477,7 +2477,7 @@ static void hotkey_compare_and_issue_event(struct tp_nvram_state *oldn,
>  */
> static int hotkey_kthread(void *data)
> {
> -	struct tp_nvram_state s[2] = { 0 };
> +	struct tp_nvram_state s[2];
> 	u32 poll_mask, event_mask;
> 	unsigned int si, so;
> 	unsigned long t;
> @@ -2488,6 +2488,8 @@ static int hotkey_kthread(void *data)
> 	if (tpacpi_lifecycle == TPACPI_LIFE_EXITING)
> 		goto exit;
> 
> +	memset(&s, 0, sizeof(s));
> +
> 	set_freezable();
> 
> 	so = 0;
> -- 
> 2.27.0
> 

Please ignore and use :

PATCH 4.14 v2 ] platform/x86: Corrects warning: missing braces around initializer

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ