]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Apr 2017 20:29:40 +0000 (16:29 -0400)
commit62289ba27558553871fd047baadaaeda886c6a63
tree80ae04f1b40f84e4c674ab26d4372cfa9330e77a
parent6cf75f1cebb048cfc1424b4b8ac9bbc08d5f9f66
qed: Fix possible system hang in the dcbnl-getdcbx() path.

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>
drivers/net/ethernet/qlogic/qed/qed_dcbx.c