diff options
| author | Cunhao Lu <1579567540@qq.com> | 2026-07-31 17:45:01 +0800 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-11-03 19:54:28 +0100 |
| commit | d4b616a38118e81cfb206babd052db260d7abf6c (patch) | |
| tree | 5b0fd9a1682107efca9763a40a9d70112849f32f /include/uapi/linux/errqueue.h | |
| parent | d743071964920c92af598c87a9e6f4369263ee09 (diff) | |
can: skb: make CAN skb allocation failure paths IRQ-safe
The CAN skb allocation helpers are used from hardware interrupt receive
handlers. If can_skb_ext_add() fails, they release the newly allocated skb
with kfree_skb(), which is not safe in hardware interrupt context.
Use dev_kfree_skb_any() for the allocation failure paths in
alloc_can_skb(), alloc_canfd_skb(), and alloc_canxl_skb().
Fixes: 96ea3a1e2d31 ("can: add CAN skb extension infrastructure")
Signed-off-by: Cunhao Lu <1579567540@qq.com>
Link: https://patch.msgid.link/tencent_C825C17D442F801351CE2FBC4984064B4605@qq.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
