[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <BN3PR0701MB1591F2DA114EA1D14BA3025D80B50@BN3PR0701MB1591.namprd07.prod.outlook.com>
Date: Mon, 7 Aug 2017 07:40:54 +0000
From: "Tayar, Tomer" <Tomer.Tayar@...ium.com>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
"Mintz, Yuval" <Yuval.Mintz@...ium.com>,
"Elior, Ariel" <Ariel.Elior@...ium.com>,
Dept-Eng Everest Linux L2 <Dept-EngEverestLinuxL2@...ium.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kernel-janitors@...r.kernel.org" <kernel-janitors@...r.kernel.org>
Subject: RE: [PATCH] qed: Fix a memory allocation failure test in
'qed_mcp_cmd_init()'
> We allocate 'p_info->mfw_mb_cur' and 'p_info->mfw_mb_shadow' but we
> check
> 'p_info->mfw_mb_addr' instead of 'p_info->mfw_mb_cur'.
>
> 'p_info->mfw_mb_addr' is never 0, because it is initiliazed a few lines
> above in 'qed_load_mcp_offsets()'.
>
> Update the test and check the result of the 2 'kzalloc()' instead.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Thanks
Acked-by: Tomer Tayar <Tomer.Tayar@...ium.com>
Powered by blists - more mailing lists