[media] drivers/media/video/tlg2300/pd-video.c: Remove second mutex_unlock in pd_vidi...
authorAlexander Strakh <cromlehg@gmail.com>
Tue, 25 Jan 2011 21:00:13 +0000 (18:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 09:51:57 +0000 (06:51 -0300)
commita07500ef690fcbec76e879ee2093d7ca69883825
treecb210046aa200bca46ac4508de00664a46197b05
parent868e90d55c0eb6f3c5949c2a747714072c3e080a
[media] drivers/media/video/tlg2300/pd-video.c: Remove second mutex_unlock in pd_vidioc_s_fmt

Error path in file drivers/media/video/tlg2300/pd-video.c:
1. First mutex_unlock on &pd->lock in line 767 (in function that
   called from line 805)
2. Second in line  806

 805        pd_vidioc_s_fmt(pd, &f->fmt.pix);
 806        mutex_unlock(&pd->lock);

Found by Linux Device Drivers Verification Project

Signed-off-by: Alexander Strakh <strakh@ispras.ru>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tlg2300/pd-video.c