Add lockdep assertion for EoE xmit callback

This commit is contained in:
Bjarne von Horn 2024-01-10 17:22:32 +01:00
parent eb44f82a91
commit dc13d7c511
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,8 @@
#include <linux/version.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/lockdep.h>
#include <linux/skbuff.h>
#include "globals.h"
#include "master.h"
@ -826,6 +828,9 @@ int ec_eoedev_tx(struct sk_buff *skb, /**< transmit socket buffer */
}
#endif
WARN_ON_ONCE(skb_get_queue_mapping(skb) != 0);
lockdep_assert_held(&netdev_get_tx_queue(dev, 0)->_xmit_lock);
if (!(frame =
(ec_eoe_frame_t *) kmalloc(sizeof(ec_eoe_frame_t), GFP_ATOMIC))) {
if (printk_ratelimit())