pinctrl: nsp-gpio: forever loop in nsp_gpio_get_strength()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Dec 2015 07:25:32 +0000 (10:25 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Dec 2015 08:58:05 +0000 (09:58 +0100)
commitce6c1cd2c324c027de87d6c249298c9f93463ee8
tree2667ef237c0b4876aadcd46aea0ad6b134d60691
parenta898c8358aecc9671aa9acbca00567e7387a62fb
pinctrl: nsp-gpio: forever loop in nsp_gpio_get_strength()

There is a signedness bug here so the loop will never exit.

Fixes: 8bfcbbbcabe0 ('pinctrl: nsp: add gpio-a driver support for Broadcom NSP SoC')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c