aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2015-01-12 11:12:25 -0500
committerLinus Walleij <linus.walleij@linaro.org>2015-01-14 08:24:29 -0500
commit225fce83cb72e1bffb712a33ce47c210c770f8ab (patch)
treeff753de5fbb156b1990dc83782a195d8ec5cc081 /crypto
parent5539b3c938d64a60cb1fc442ac3ce9263d52de0c (diff)
gpio: fix gpio-chip list corruption
Fix potential corruption of gpio-chip list due to failure to remove the chip from the list before returning in gpiochip_add error path. The chip could be long gone when the global list is next traversed, something which could lead to a null-pointer dereference. In the best case (chip not deallocated) we are just leaking the gpio range. Fixes: 14e85c0e69d5 ("gpio: remove gpio_descs global array") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions