]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sprd: fix off by one bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Sep 2017 11:12:05 +0000 (14:12 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 Sep 2017 09:27:36 +0000 (11:27 +0200)
commit4ce504c4eb5628073f35d38efe490554a12aee04
tree16e635bcdc7069d4241c7d4c95643e61cb13f0ac
parent41470c379b4f8d9a1513d930338fadfbccc287b6
pinctrl: sprd: fix off by one bugs

info->groups[] has info->ngroups elements so these comparisons should be
>= instead of >.

Fixes: 41d32cfce1ae ("pinctrl: sprd: Add Spreadtrum pin control driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Baolin Wang <baolin.wang@spreadtrum.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sprd/pinctrl-sprd.c