Skip to content
Commit df8ce77b authored by Matt Johnston's avatar Matt Johnston Committed by Jakub Kicinski
Browse files

net: mctp i2c: Copy headers if cloned



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: default avatarMatt Johnston <matt@codeconstruct.com.au>
Fixes: f5b8abf9 ("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: default avatarJakub Kicinski <kuba@kernel.org>
parent 26db9c9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment