]> 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)
committerStefan Roese <sr@denx.de>
Wed, 28 Apr 2021 08:05:13 +0000 (10:05 +0200)
commit10221d2847ef78cb0e4cbdcce9d7ab1b2df11d2a
treeb73753ac0b59d34b589492b65b7b93a07d5d3875
parentc6ecb2f81e7fdb80ef2e5e5153d60552c4ea3fda
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