[Intel-wired-lan] [PATCH] i40e: Check for memory allocation failure

Bowers, AndrewX andrewx.bowers at intel.com
Wed May 17 21:54:28 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Christophe JAILLET
> Sent: Friday, May 5, 2017 12:29 PM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>
> Cc: kernel-janitors at vger.kernel.org; Christophe JAILLET
> <christophe.jaillet at wanadoo.fr>; intel-wired-lan at lists.osuosl.org; linux-
> kernel at vger.kernel.org
> Subject: [Intel-wired-lan] [PATCH] i40e: Check for memory allocation failure
> 
> If 'kzalloc' fails, a NULL pointer will be dereferenced. Return -ENOMEM
> instead.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_client.c | 2 ++
>  1 file changed, 2 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>


More information about the Intel-wired-lan mailing list