aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/hid.c
diff options
context:
space:
mode:
authorAlexey Kashavkin <[email protected]>2025-03-01 21:14:36 +0000
committerPablo Neira Ayuso <[email protected]>2025-03-13 09:02:39 +0000
commit6edd78af9506bb182518da7f6feebd75655d9a0e (patch)
tree51283422b98da24ad7a9daa2f57d356e1e99e977 /drivers/platform/x86/intel/hid.c
parentipvs: prevent integer overflow in do_ip_vs_get_ctl() (diff)
downloadkernel-6edd78af9506bb182518da7f6feebd75655d9a0e.tar.gz
kernel-6edd78af9506bb182518da7f6feebd75655d9a0e.zip
netfilter: nft_exthdr: fix offset with ipv4_find_option()
There is an incorrect calculation in the offset variable which causes the nft_skb_copy_to_reg() function to always return -EFAULT. Adding the start variable is redundant. In the __ip_options_compile() function the correct offset is specified when finding the function. There is no need to add the size of the iphdr structure to the offset. Fixes: dbb5281a1f84 ("netfilter: nf_tables: add support for matching IPv4 options") Signed-off-by: Alexey Kashavkin <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/hid.c')
0 files changed, 0 insertions, 0 deletions