summaryrefslogtreecommitdiff
path: root/net/ipv6/ioam6_iptunnel.c
diff options
context:
space:
mode:
authorYue Haibing <yuehaibing@huawei.com>2025-09-01 20:37:26 +0800
committerJakub Kicinski <kuba@kernel.org>2025-09-02 17:01:14 -0700
commit3d95261eeb74958cd496e1875684827dc5d028cc (patch)
treeef67d1a9f1ef4da78ac6e997ac3d34b4916ff3e7 /net/ipv6/ioam6_iptunnel.c
parentb0bc64512295f6a613fab42452bd7e2cf72c6b61 (diff)
ipv6: Add sanity checks on ipv6_devconf.rpl_seg_enabled
In ipv6_rpl_srh_rcv() we use min(net->ipv6.devconf_all->rpl_seg_enabled, idev->cnf.rpl_seg_enabled) is intended to return 0 when either value is zero, but if one of the values is negative it will in fact return non-zero. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Link: https://patch.msgid.link/20250901123726.1972881-3-yuehaibing@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/ioam6_iptunnel.c')
0 files changed, 0 insertions, 0 deletions