aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorMaxim Korotkov <[email protected]>2022-11-17 15:30:34 +0300
committerLinus Walleij <[email protected]>2022-11-21 14:41:52 +0100
commit64c150339e7f6c5cbbe8c17a56ef2b3902612798 (patch)
tree8c1b53bd0508c7e63c126263f1af20e453f1b6cb /scripts/gdb/linux/vmalloc.py
parenteb7081409f94a9a8608593d0fb63a1aa3d6f95d8 (diff)
pinctrl: single: Fix potential division by zero
There is a possibility of dividing by zero due to the pcs->bits_per_pin if pcs->fmask() also has a value of zero and called fls from asm-generic/bitops/builtin-fls.h or arch/x86/include/asm/bitops.h. The function pcs_probe() has the branch that assigned to fmask 0 before pcs_allocate_pin_table() was called Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 4e7e8017a80e ("pinctrl: pinctrl-single: enhance to configure multiple pins of different modules") Signed-off-by: Maxim Korotkov <[email protected]> Reviewed-by: Tony Lindgren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions