mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-10 02:29:01 +00:00
qede: Fix gfp flags sent to rdma event node allocation
[ Upstream commit090477e4ac
] A previous commit4609adc271
("qede: Fix qedr link update") added a flow that could allocate rdma event objects from an interrupt path (link notification). Therefore the kzalloc call should be done with GFP_ATOMIC. fixes:4609adc271
("qede: Fix qedr link update") Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Sudarsana Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6618d064ba
commit
b5b3188098
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ qede_rdma_get_free_event_node(struct qede_dev *edev)
|
|||
}
|
||||
|
||||
if (!found) {
|
||||
event_node = kzalloc(sizeof(*event_node), GFP_KERNEL);
|
||||
event_node = kzalloc(sizeof(*event_node), GFP_ATOMIC);
|
||||
if (!event_node) {
|
||||
DP_NOTICE(edev,
|
||||
"qedr: Could not allocate memory for rdma work\n");
|
||||
|
|
Loading…
Reference in a new issue