diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2015-03-18 00:21:32 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-03-19 08:39:14 -0500 |
commit | d7c146053dd195b90c79b9b8131431f44541d015 (patch) | |
tree | 0812a0b0d5c1445fb09ef1c5e73654f388d7541c /drivers/of/pdt.c | |
parent | 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff) | |
download | linux-d7c146053dd195b90c79b9b8131431f44541d015.tar.bz2 |
of/irq: Fix of_irq_parse_one() returned error codes
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>
Cc: stable@vger.kernel.org # 3.13+
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/pdt.c')
0 files changed, 0 insertions, 0 deletions