linux/drivers/net/mctp
Matt Johnston caff87addf net: mctp i2c: Copy headers if cloned
[ Upstream commit df8ce77ba8 ]

Use skb_cow_head() prior to modifying the TX SKB. This is necessary
when the SKB has been cloned, to avoid modifying other shared clones.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Fixes: f5b8abf9fc ("mctp i2c: MCTP I2C binding driver")
Link: https://patch.msgid.link/20250306-matt-mctp-i2c-cow-v1-1-293827212681@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-03-22 12:54:11 -07:00
..
Kconfig net: mctp-serial: Add kunit test for next_chunk_len() 2024-09-01 18:14:01 +01:00
Makefile mctp i3c: MCTP I3C driver 2023-10-17 12:45:03 +02:00
mctp-i2c.c net: mctp i2c: Copy headers if cloned 2025-03-22 12:54:11 -07:00
mctp-i3c.c net: mctp i3c: Copy headers if cloned 2025-03-22 12:54:11 -07:00
mctp-serial.c TTY/Serial driver update for 6.12-rc1 2024-09-26 09:59:50 -07:00