|
@@ -3162,6 +3162,8 @@ static int igb_sw_init(struct igb_adapter *adapter)
|
|
/* Setup and initialize a copy of the hw vlan table array */
|
|
/* Setup and initialize a copy of the hw vlan table array */
|
|
adapter->shadow_vfta = kcalloc(E1000_VLAN_FILTER_TBL_SIZE, sizeof(u32),
|
|
adapter->shadow_vfta = kcalloc(E1000_VLAN_FILTER_TBL_SIZE, sizeof(u32),
|
|
GFP_ATOMIC);
|
|
GFP_ATOMIC);
|
|
|
|
+ if (!adapter->shadow_vfta)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
/* This call may decrease the number of queues */
|
|
/* This call may decrease the number of queues */
|
|
if (igb_init_interrupt_scheme(adapter, true)) {
|
|
if (igb_init_interrupt_scheme(adapter, true)) {
|