Skip to content

Commit 0379861

Browse files
Wei Yongjunjmberg-intel
authored andcommitted
mac80211_hwsim: use GFP_ATOMIC under spin lock
A spin lock is taken here so we should use GFP_ATOMIC. Fixes: 5d44fe7 ("mac80211_hwsim: add frame transmission support over virtio") Signed-off-by: Wei Yongjun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
1 parent 7c74b0b commit 0379861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/mac80211_hwsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4068,7 +4068,7 @@ static void hwsim_virtio_rx_work(struct work_struct *work)
40684068
}
40694069
vq = hwsim_vqs[HWSIM_VQ_RX];
40704070
sg_init_one(sg, skb->head, skb_end_offset(skb));
4071-
err = virtqueue_add_inbuf(vq, sg, 1, skb, GFP_KERNEL);
4071+
err = virtqueue_add_inbuf(vq, sg, 1, skb, GFP_ATOMIC);
40724072
if (WARN(err, "virtqueue_add_inbuf returned %d\n", err))
40734073
nlmsg_free(skb);
40744074
else

0 commit comments

Comments
 (0)