Skip to content

Commit 090477e

Browse files
mkalderondavem330
authored andcommitted
qede: Fix gfp flags sent to rdma event node allocation
A previous commit 4609adc ("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: 4609adc ("qede: Fix qedr link update") Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: Sudarsana Kalluru <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent af6858e commit 090477e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qede/qede_rdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ qede_rdma_get_free_event_node(struct qede_dev *edev)
238238
}
239239

240240
if (!found) {
241-
event_node = kzalloc(sizeof(*event_node), GFP_KERNEL);
241+
event_node = kzalloc(sizeof(*event_node), GFP_ATOMIC);
242242
if (!event_node) {
243243
DP_NOTICE(edev,
244244
"qedr: Could not allocate memory for rdma work\n");

0 commit comments

Comments
 (0)