summaryrefslogtreecommitdiff
path: root/include/linux/tc_act/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorMarc Buerg <buermarc@googlemail.com>2026-03-25 23:29:50 +0100
committerJoel Granados <joel.granados@kernel.org>2026-03-26 09:32:19 +0100
commitf63a9df7e3f9f842945d292a19d9938924f066f9 (patch)
tree6112ab5137f43e0fd5a3e639e8ba2ab0edccfe2b /include/linux/tc_act/git@git.tavy.me:linux.git
parentc369299895a591d96745d6492d4888259b004a9e (diff)
sysctl: fix uninitialized variable in proc_do_large_bitmap
proc_do_large_bitmap() does not initialize variable c, which is expected to be set to a trailing character by proc_get_long(). However, proc_get_long() only sets c when the input buffer contains a trailing character after the parsed value. If c is not initialized it may happen to contain a '-'. If this is the case proc_do_large_bitmap() expects to be able to parse a second part of the input buffer. If there is no second part an unjustified -EINVAL will be returned. Initialize c to 0 to prevent returning -EINVAL on valid input. Fixes: 9f977fb7ae9d ("sysctl: add proc_do_large_bitmap") Signed-off-by: Marc Buerg <buermarc@googlemail.com> Reviewed-by: Joel Granados <joel.granados@kernel.org> Signed-off-by: Joel Granados <joel.granados@kernel.org>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions