[media] em28xx-video: Swap release order to avoid lock nesting
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Wed, 6 Nov 2013 08:39:35 +0000 (05:39 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 29 Nov 2013 16:45:19 +0000 (14:45 -0200)
commit98c24dcd6392784b1cd0dca462abe6f91f0cadc9
treeacb38647fafef77a61f8ec1a51e8600d38da41c1
parent0e0fe3958fdd13dbf55c3a787acafde6efd04272
[media] em28xx-video: Swap release order to avoid lock nesting

vb2_fop_release might take the video queue mutex lock.
In order to avoid nesting mutexes the private mutex is taken after the
fop_release has finished.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-video.c