netpoll: use GFP_ATOMIC in slave_enable_netpoll() and __netpoll_setup()
authorAmerigo Wang <amwang@redhat.com>
Fri, 10 Aug 2012 01:24:37 +0000 (01:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2012 21:33:30 +0000 (14:33 -0700)
commit47be03a28cc6c80e3aa2b3e8ed6d960ff0c5c0af
treeba11046ff60d948cd4db06652e2483537387b3ca
parentddf343f635fe4440cad528e12f96f28bd50aa099
netpoll: use GFP_ATOMIC in slave_enable_netpoll() and __netpoll_setup()

slave_enable_netpoll() and __netpoll_setup() may be called
with read_lock() held, so should use GFP_ATOMIC to allocate
memory. Eric suggested to pass gfp flags to __netpoll_setup().

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/team/team.c
include/linux/netdevice.h
include/linux/netpoll.h
net/8021q/vlan_dev.c
net/bridge/br_device.c
net/bridge/br_if.c
net/bridge/br_private.h
net/core/netpoll.c