V4L/DVB (13955): cx25821: fix double unlock in medusa_video_init()

medusa_set_videostandard() takes the lock but it always drops it before
returning.

This was found with a static checker and compile tested only.  :/

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Dan Carpenter 2009-12-28 13:59:46 -03:00 коммит произвёл Mauro Carvalho Chehab
Родитель c42405096b
Коммит 423f5c0d01
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -860,10 +860,8 @@ int medusa_video_init(struct cx25821_dev *dev)
ret_val = medusa_set_videostandard(dev); ret_val = medusa_set_videostandard(dev);
if (ret_val < 0) { if (ret_val < 0)
mutex_unlock(&dev->lock);
return -EINVAL; return -EINVAL;
}
return 1; return 1;
} }