]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: nsp: off by ones in nsp_pinmux_enable()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 3 Jul 2018 12:04:25 +0000 (15:04 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 14 Jul 2018 10:47:04 +0000 (12:47 +0200)
commit929f77402f9ff52d3446888c202e4bbf6584d509
tree9b5632dad65256452c2ceb4f9c4edb4c599fe014
parent8efbd903fa8b48e4a12711d744f64fa9dad3131e
pinctrl: nsp: off by ones in nsp_pinmux_enable()

The > comparisons should be >= or else we read beyond the end of the
pinctrl->functions[] array.

Fixes: 3ce53b218330 ("pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/bcm/pinctrl-nsp-mux.c