[media] s5p-mfc: fix video device release double release in probe error path
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 28 Jun 2016 19:17:16 +0000 (16:17 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 17:26:11 +0000 (14:26 -0300)
commit7d48ea9f54368fa3c740740fb21da8e162a6f631
treeafd71ecff142faca6bf508ce1b4eea9059d5f2be
parent8eb80252424375de3cdcf16c199d68894b9561f1
[media] s5p-mfc: fix video device release double release in probe error path

Fix Decoder and encoder video device double release in probe error path.
video_device_release(dev->vfd_dec) get called twice if decoder register
fails. Also, video_device_release(dev->vfd_enc) get called twice if encoder
register fails.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c