]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mctp i3c: Copy headers if cloned
authorMatt Johnston <matt@codeconstruct.com.au>
Thu, 6 Mar 2025 10:24:18 +0000 (18:24 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Mar 2025 03:41:10 +0000 (19:41 -0800)
commit26db9c9ee19c36a97dbb1cfef007a3c189c4c874
tree9bb7f155fb6bab11cea31c6c9237b1adc4bfd2f4
parentdc5340c3133a3ebe54853fd299116149e528cfaa
net: mctp i3c: 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: Matt Johnston <matt@codeconstruct.com.au>
Fixes: c8755b29b58e ("mctp i3c: MCTP I3C driver")
Link: https://patch.msgid.link/20250306-matt-i3c-cow-head-v1-1-d5e6a5495227@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mctp/mctp-i3c.c