From: Aleksandr Loktionov Date: Tue, 14 May 2019 17:37:02 +0000 (-0700) Subject: iavf: Change GFP_KERNEL to GFP_ATOMIC in kzalloc() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f0a48fb44138bdb0a7b02082f2fd048903478451;p=openwrt%2Fstaging%2Fblogic.git iavf: Change GFP_KERNEL to GFP_ATOMIC in kzalloc() iavf_add_vlan() is being called in atomic context so kzalloc() needs GFP_ATOMIC. This patch fixes it. Signed-off-by: Aleksandr Loktionov Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c index 9ce04a8c0d0f..8a37b9f604e2 100644 --- a/drivers/net/ethernet/intel/iavf/iavf_main.c +++ b/drivers/net/ethernet/intel/iavf/iavf_main.c @@ -659,7 +659,7 @@ iavf_vlan_filter *iavf_add_vlan(struct iavf_adapter *adapter, u16 vlan) f = iavf_find_vlan(adapter, vlan); if (!f) { - f = kzalloc(sizeof(*f), GFP_KERNEL); + f = kzalloc(sizeof(*f), GFP_ATOMIC); if (!f) goto clearout;