diff options
author | Matt Johnston <matt@codeconstruct.com.au> | 2025-03-06 05:33:20 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-08 06:45:03 +0300 |
commit | df8ce77ba8b7c012a3edd1ca7368b46831341466 (patch) | |
tree | d21f82d46be8cf4300a2275cd07530f0a85e1d8d /net/switchdev/switchdev.c | |
parent | 26db9c9ee19c36a97dbb1cfef007a3c189c4c874 (diff) | |
download | linux-df8ce77ba8b7c012a3edd1ca7368b46831341466.tar.xz |
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>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions