]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e: Check for memory allocation failure
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 5 May 2017 19:29:13 +0000 (21:29 +0200)
committerJack Vogel <jack.vogel@oracle.com>
Tue, 10 Oct 2017 21:15:24 +0000 (14:15 -0700)
commit3adcd148b568462d3abb38fc0d3ba3fdaa30275e
tree13a0ba292adc5c7974d46a9a3832bcd9af9c3b23
parentf88fd88846ba3588766d62e7d79ee3a027b69847
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@wanadoo.fr>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Orabug: 26785018
(cherry picked from commit 0a4ecc2c5e0479f269e6ca5f9588b23d649aa948)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_client.c