]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: rcar: NULL dereference on error in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 07:56:51 +0000 (10:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:03:12 +0000 (09:03 +0100)
commit8a8d6b1fed5a224155b7867e8cc3f357d4bf8f2c
treebd7314e11861b64c017800ce8f8269b86762ca8b
parentd65f464e3715de44e5cb9ce72192c5876351a295
gpio: rcar: NULL dereference on error in probe()

It's not obvious from the label name but "err1" tries to release
"p->irq_domain" which leads to a NULL dereference.

Fixes: 9a3221e53b8c ('gpio: Renesas R-Car GPIO driver V3')
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-rcar.c