summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pxa.c
diff options
context:
space:
mode:
authorAnton Vasilyev <vasilyev@ispras.ru>2018-07-23 18:53:30 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-07-29 23:13:09 +0200
commit4bf4eed44bfe288f459496eaf38089502ef91a79 (patch)
tree3f1af71b313121cabf918729adc11744aa4210d4 /drivers/gpio/gpio-pxa.c
parentgpiolib: probe deferral error reporting (diff)
downloadlinux-4bf4eed44bfe288f459496eaf38089502ef91a79.tar.xz
linux-4bf4eed44bfe288f459496eaf38089502ef91a79.zip
gpio: ml-ioh: Fix buffer underwrite on probe error path
If ioh_gpio_probe() fails on devm_irq_alloc_descs() then chip may point to any element of chip_save array, so reverse iteration from pointer chip may become chip_save[-1] and gpiochip_remove() will operate with wrong memory. The patch fix the error path of ioh_gpio_probe() to correctly bypass chip_save array. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-pxa.c')
0 files changed, 0 insertions, 0 deletions