Files
linux/drivers/of
Laurent Pinchart 7dc9ca26d2 of/irq: Fix of_irq_parse_one() returned error codes
commit d7c146053d upstream.

The error code paths that require cleanup use a goto to jump to the
cleanup code and return an error code. However, the error code variable
res, which is initialized to -EINVAL when declared, is then overwritten
with the return value of of_parse_phandle_with_args(), and reused as the
return code from of_irq_parse_one(). This leads to an undetermined error
being returned instead of the expected -EINVAL value. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-04-13 14:03:01 +02:00
..
2013-12-30 10:23:25 -06:00
2014-02-18 18:12:53 -05:00
2012-07-10 10:32:06 -05:00
2013-10-09 20:03:59 -05:00