[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3c/GSZEW60ZgSkM@atomide.com>
Date: Fri, 18 Nov 2022 10:15:21 +0200
From: Tony Lindgren <tony@...mide.com>
To: Maxim Korotkov <korotkov.maxim.s@...il.com>
Cc: Haojian Zhuang <haojian.zhuang@...aro.org>,
Linus Walleij <linus.walleij@...aro.org>,
"Manjunathappa, Prakash" <prakash.pm@...com>,
linux-arm-kernel@...ts.infradead.org, linux-omap@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH] pinctrl: single: Fix potential division by zero
* Maxim Korotkov <korotkov.maxim.s@...il.com> [221117 12:22]:
> 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
Reviewed-by: Tony Lindgren <tony@...mide.com>
Powered by blists - more mailing lists