Skip to content

Commit

Permalink
[media] exynos4-is: Add missing 'of_node_put'
Browse files Browse the repository at this point in the history
It is likely that a "of_node_put(ep)" is missing here.
There is one in the previous error handling code, and one a few lines
below in the normal case as well.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Christophe JAILLET authored and Mauro Carvalho Chehab committed Feb 3, 2017
1 parent dd93e79 commit 2b2d1d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/platform/exynos4-is/media-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,10 @@ static int fimc_md_parse_port_node(struct fimc_md *fmd,
return ret;
}

if (WARN_ON(endpoint.base.port == 0) || index >= FIMC_MAX_SENSORS)
if (WARN_ON(endpoint.base.port == 0) || index >= FIMC_MAX_SENSORS) {
of_node_put(ep);
return -EINVAL;
}

pd->mux_id = (endpoint.base.port - 1) & 0x1;

Expand Down

0 comments on commit 2b2d1d4

Please sign in to comment.