summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-03-18 00:21:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-13 14:03:54 +0200
commit874fee53430ab4fd92326832a99402d00e1f629c (patch)
treefa09e236c869536188327c186c463ad1570bf589 /tools
parentbae96235997e41843eeb118bfb12aa4365266ce2 (diff)
of/irq: Fix of_irq_parse_one() returned error codes
commit d7c146053dd195b90c79b9b8131431f44541d015 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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions