Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 423f5c0d authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c4240509
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -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;
}
}