]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down
authorEric Dumazet <edumazet@google.com>
Thu, 1 Jun 2023 16:04:44 +0000 (16:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:44 +0000 (11:16 +0200)
commit86b385fa6cb57bcde0bedc38d813f5e615bb531e
tree3441060d63257af7d8a8a05e9bfcbdf5b5ca1871
parent18fada1191de316c607c309159216f7072073fd5
net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down

[ Upstream commit edf2e1d2019b2730d6076dbe4c040d37d7c10bbe ]

skip_notify_on_dev_down ctl table expects this field
to be an int (4 bytes), not a bool (1 byte).

Because proc_dou8vec_minmax() was added in 5.13,
this patch converts skip_notify_on_dev_down to an int.

Following patch then converts the field to u8 and use proc_dou8vec_minmax().

Fixes: 7c6bb7d2faaf ("net/ipv6: Add knob to skip DELROUTE message on device down")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netns/ipv6.h