linux/drivers/net/ethernet
Jia-Ju Bai 04a1e08cc7 i40evf: Replace GFP_ATOMIC with GFP_KERNEL in i40evf_add_vlan
i40evf_add_vlan() is never called in atomic context.

i40evf_add_vlan() is only called by i40evf_vlan_rx_add_vid(),
which is only set as ".ndo_vlan_rx_add_vid" in struct net_device_ops.
".ndo_vlan_rx_add_vid" is not called in atomic context.

Despite never getting called from atomic context,
i40evf_add_vlan() calls kzalloc() with GFP_ATOMIC,
which does not sleep for allocation.
GFP_ATOMIC is not necessary and can be replaced with GFP_KERNEL,
which can sleep and improve the possibility of sucessful allocation.

This is found by a static analysis tool named DCNS written by myself.
And I also manually check it.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-04-30 08:12:30 -07:00
..
3com
8390 net-next: New ax88796 platform driver for Amiga X-Surf 100 Zorro board (m68k) 2018-04-19 16:11:11 -04:00
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon
amd net: amd8111e: remove redundant duplicated if statement 2018-04-25 14:11:27 -04:00
apm
apple
aquantia net: aquantia: oops when shutdown on already stopped device 2018-04-11 10:41:36 -04:00
arc
atheros
aurora
broadcom bnxt_en: Reserve rings at driver open if none was reserved at probe time. 2018-04-27 14:47:31 -04:00
brocade
cadence treewide: fix up files incorrectly marked executable 2018-04-07 13:31:23 -07:00
calxeda
cavium liquidio: fix spelling mistake: "mac_tx_multi_collison" -> "mac_tx_multi_collision" 2018-04-30 09:29:09 -04:00
chelsio cxgb4vf: display pause settings 2018-04-17 13:54:00 -04:00
cirrus
cisco
cortina
davicom
dec
dlink
emulex
ezchip
faraday
freescale fsl/fman_port: remove redundant check on port->rev_info.major 2018-04-24 16:00:37 -04:00
fujitsu
hisilicon net: hns: Avoid action name truncation 2018-04-19 16:30:26 -04:00
hp
huawei net-next/hinic: add arm64 support 2018-04-19 13:34:44 -04:00
i825xx
ibm ibmvnic: Clean actual number of RX or TX pools 2018-04-22 21:13:30 -04:00
intel i40evf: Replace GFP_ATOMIC with GFP_KERNEL in i40evf_add_vlan 2018-04-30 08:12:30 -07:00
marvell net: mvpp2: Fix DMA address mask size 2018-04-19 13:12:14 -04:00
mediatek net: mediatek: use of_device_get_match_data() 2018-04-16 13:43:07 -04:00
mellanox mlx4: Don't bother using skb_tx_hash in mlx4_en_select_queue 2018-04-29 22:01:32 -04:00
micrel
microchip
moxa
myricom
natsemi
neterion
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2018-04-26 21:19:50 -04:00
ni net: ethernet: nixge: Add support for National Instruments XGE netdev 2018-03-29 11:51:00 -04:00
nuvoton
nvidia
nxp
oki-semi
packetengines
pasemi
qlogic qed: Fix copying 2 strings 2018-04-24 13:59:42 -04:00
qualcomm net: qualcomm: rmnet: Fix warning seen with fill_info 2018-04-18 21:23:06 -04:00
rdc
realtek r8169: don't use netif_info et al before net_device has been registered 2018-04-23 11:59:22 -04:00
renesas sh_eth: kill useless check in __sh_eth_get_regs() 2018-04-01 14:09:53 -04:00
rocker
samsung
seeq
sfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-04-24 23:59:11 -04:00
sgi
silan
sis
smsc arch: remove obsolete architecture ports 2018-04-02 20:20:12 -07:00
socionext net: ethernet: ave: add support for phy-mode setting of system controller 2018-04-20 10:49:41 -04:00
stmicro net: stmmac: Implement logic to automatically select HW Interface 2018-04-23 12:03:50 -04:00
sun
synopsys
tehuti
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-04-24 23:59:11 -04:00
toshiba
tundra
via
wiznet
xilinx
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-04-03 14:04:18 -07:00
korina.c
lantiq_etop.c
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-04-03 14:04:18 -07:00
netx-eth.c