iavf: Change GFP_KERNEL to GFP_ATOMIC in kzalloc()
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tue, 14 May 2019 17:37:02 +0000 (10:37 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 17 Jun 2019 22:39:25 +0000 (15:39 -0700)
commitf0a48fb44138bdb0a7b02082f2fd048903478451
treeaa5ae81e300cd3b01987411f4da706df45641b46
parent88ec7308eadb1deb2177265e12f9845d1be56e23
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 <aleksandr.loktionov@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c