exynos-linux-stable/drivers/net/ethernet/intel/igb
Christophe JAILLET 700053c873 igb: check memory allocation failure
[ Upstream commit 18eb86362a52f0af933cc0fd5e37027317eb2d1c ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:23:44 +01:00
..
e1000_82575.c igb: reset the PHY before reading the PHY ID 2017-11-21 09:23:23 +01:00
e1000_82575.h igb: support RX flow classification by ethertype 2016-08-18 22:27:48 -07:00
e1000_defines.h igb: support RX flow classification by VLAN priority 2016-08-18 22:27:48 -07:00
e1000_hw.h igb: constify e1000_phy_operations structure 2016-02-24 15:11:07 -08:00
e1000_i210.c igb: Fix hw_dbg logging in igb_update_flash_i210 2017-11-21 09:23:23 +01:00
e1000_i210.h igb: Remove GS40G specific defines/functions 2015-12-14 10:20:06 -08:00
e1000_mac.c igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_mac.h igb: Merge VLVF configuration into igb_vfta_set 2016-02-15 16:36:52 -08:00
e1000_mbx.c igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_mbx.h igb: Cleanups to change comment style on license headers 2014-04-24 17:26:27 -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 igb: add i211 to i210 PHY workaround 2017-03-22 12:43:35 +01:00
e1000_phy.h igb: use BIT() macro or unsigned prefix 2016-05-13 14:39:47 -07:00
e1000_regs.h igb: support RX flow classification by VLAN priority 2016-08-18 22:27:48 -07:00
igb.h igb: restore PPS signal on igb_ptp_reset 2016-09-27 19:00:52 -07:00
igb_ethtool.c igb: fix non static symbol warning 2016-09-27 19:00:52 -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-12-25 14:23:44 +01:00
igb_ptp.c igb: restore PPS signal on igb_ptp_reset 2016-09-27 19:00:52 -07:00
Makefile igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00