]> git.ipfire.org Git - thirdparty/linux.git/commit
net: mctp i2c: Copy headers if cloned
authorMatt Johnston <matt@codeconstruct.com.au>
Thu, 6 Mar 2025 02:33:20 +0000 (10:33 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Mar 2025 03:45:03 +0000 (19:45 -0800)
commitdf8ce77ba8b7c012a3edd1ca7368b46831341466
treed21f82d46be8cf4300a2275cd07530f0a85e1d8d
parent26db9c9ee19c36a97dbb1cfef007a3c189c4c874
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: Matt Johnston <matt@codeconstruct.com.au>
Fixes: f5b8abf9fc3d ("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>
drivers/net/mctp/mctp-i2c.c