]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] media: am437x: Don't release OF node reference twice
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 23 Feb 2015 14:49:21 +0000 (11:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 2 Apr 2015 21:10:06 +0000 (18:10 -0300)
commitee662d44a23df45e2b3ff8b122e165b57672b656
tree23d26f7f0e692aa28b42170fc63bbeec0959fa98
parent1cdf60c97a9e7bc1829cca2e52d61be75f02c13c
[media] media: am437x: Don't release OF node reference twice

The remote port reference is released both at the end of the OF graph
parsing loop, and in the error code path at the end of the function.
Those two calls will release the same reference, causing the reference
count to go negative.

Fix the problem by removing the second call.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/am437x/am437x-vpfe.c