linux_dsm_epyc7002/drivers/net/ethernet/intel/igb
Christophe JAILLET 18eb86362a igb: check memory allocation failure
Check memory allocation failures and return -ENOMEM in such cases, as
already done for other memory allocations in this function.

This avoids NULL pointers dereference.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: Aaron Brown <aaron.f.brown@intel.com
Acked-by: PJ Waskiewicz <peter.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2017-10-10 09:01:11 -07:00
..
e1000_82575.c igb: support BCM54616 PHY 2017-08-08 18:09:12 -07:00
e1000_82575.h igb: support RX flow classification by ethertype 2016-08-18 22:27:48 -07:00
e1000_defines.h igb: support BCM54616 PHY 2017-08-08 18:09:12 -07:00
e1000_hw.h igb: support BCM54616 PHY 2017-08-08 18:09:12 -07:00
e1000_i210.c igb: Fix hw_dbg logging in igb_update_flash_i210 2017-01-06 02:23:22 -08:00
e1000_i210.h igb: Remove GS40G specific defines/functions 2015-12-14 10:20:06 -08:00
e1000_mac.c igb: Realign bad indentation 2017-01-06 02:18:49 -08:00
e1000_mac.h igb: Merge VLVF configuration into igb_vfta_set 2016-02-15 16:36:52 -08:00
e1000_mbx.c igb: do not drop PF mailbox lock after read of VF message 2017-08-08 17:52:45 -07:00
e1000_mbx.h igb: do not drop PF mailbox lock after read of VF message 2017-08-08 17:52:45 -07:00
e1000_nvm.c igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_nvm.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
e1000_phy.c scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
e1000_phy.h igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_regs.h igb: correct register comments 2017-01-06 02:18:50 -08:00
igb_ethtool.c igb: Remove useless argument 2017-06-06 01:04:13 -07:00
igb_hwmon.c igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -07:00
igb_main.c igb: check memory allocation failure 2017-10-10 09:01:11 -07:00
igb_ptp.c igb: check for Tx timestamp timeouts during watchdog 2017-06-06 01:03:17 -07:00
igb.h igb: Remove useless argument 2017-06-06 01:04:13 -07:00
Makefile igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00