diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-01-23 19:16:56 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-03 14:23:40 -0200 |
commit | 2b2d1d403343838401af029bd29b441a414beef3 (patch) | |
tree | f11706c02eef8389ec9334bd6b0d0fa7b749d732 /drivers/media | |
parent | dd93e79c602c8219c0b69b0667601ed363b4191a (diff) | |
download | blackbird-op-linux-2b2d1d403343838401af029bd29b441a414beef3.tar.gz blackbird-op-linux-2b2d1d403343838401af029bd29b441a414beef3.zip |
[media] exynos4-is: Add missing 'of_node_put'
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/exynos4-is/media-dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c index 735221a5b6b4..e82450e90a67 100644 --- a/drivers/media/platform/exynos4-is/media-dev.c +++ b/drivers/media/platform/exynos4-is/media-dev.c @@ -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; |