net: mvpp2: do not sleep in set_rx_mode
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Tue, 24 Oct 2017 09:41:28 +0000 (11:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 08:07:52 +0000 (17:07 +0900)
commit239dd4ee4838523419ad16e05b16a2003b71d317
tree051eb2fec5dbe1754868f2d4587182b10ca54208
parent20746d717ea390ac6ac3aa531f27ac156bf2e747
net: mvpp2: do not sleep in set_rx_mode

This patch replaces GFP_KERNEL by GFP_ATOMIC to avoid sleeping in the
ndo_set_rx_mode() call which is called with BH disabled.

Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c