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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 18:55:51 +0000 (10:55 -0800)
commita878002b71bf238810b6e2a885455601222ac140
tree0b43efd81b86a231a936dcbdca8393a807106bf2
parentaeb94017f672ba2ca8592e7d91fbcc0c3ff63031
gpio: rcar: NULL dereference on error in probe()

commit 0c8aab8e65e450f2bfea494c1b6a86ded653f88c upstream.

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

Fixes: 119f5e448d32 ('gpio: Renesas R-Car GPIO driver V3')

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-rcar.c