summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-02-18 08:52:47 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-02-21 17:11:40 +0100
commit3385ab72d995fc0b876818a36203bf2429445686 (patch)
treea6ea30ff903e0161900d9043a667ca49293cca83 /drivers/gpio/gpiolib.c
parentd6d43a92172085a2681e06a0d06aac53c7bcdd12 (diff)
pinctrl: mediatek: Fix some off by one bugs
These comparisons should be >= instead of > to prevent accessing one element beyond the end of the hw->soc->pins[] array. Fixes: 3de7deefce69 ("pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()") Fixes: 184d8e13f9b1 ("pinctrl: mediatek: Add support for pin configuration dump via debugfs.") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20200218055247.74s2xa7veqx2do34@kili.mountain Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions