]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: check function mask to be non-zero
authorDario Binacchi <dariobin@libero.it>
Thu, 22 Apr 2021 16:35:58 +0000 (18:35 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 27 Apr 2021 12:05:30 +0000 (08:05 -0400)
commit69414d86ed57bf7b55ccd79d3d5ca5a01987a5b7
treefcf0ccdd9fbbed3ab33fca17c9b534905e5159cf
parent7ac7038ab36feff54e882422de0f3127db094565
pinctrl: single: check function mask to be non-zero

Otherwise it can generate a division by zero, which has an undefined
behavior.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
drivers/pinctrl/pinctrl-single.c