qed: Fix possible system hang in the dcbnl-getdcbx() path.
authorsudarsana.kalluru@cavium.com <sudarsana.kalluru@cavium.com>
Wed, 19 Apr 2017 10:19:54 +0000 (03:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:08 +0000 (10:26 +0200)
commit8f9bd136b50b15e1ddf12281b34802e948023619
tree0c9229af7e55a34d8472626e6a59e57e00fb776a
parentf06316859ce6b812bd791c2092da6351cc6829ab
qed: Fix possible system hang in the dcbnl-getdcbx() path.

[ Upstream commit 62289ba27558553871fd047baadaaeda886c6a63 ]

qed_dcbnl_get_dcbx() API uses kmalloc in GFT_KERNEL mode. The API gets
invoked in the interrupt context by qed_dcbnl_getdcbx callback. Need
to invoke this kmalloc in atomic mode.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c