Hi Hans,

I believe you've introduced a race condition in commit 
dd0daf2a6fb6bec436a3ef68bd585ea09a2a54b7

v4l2-dev: remove unnecessary lock around atomic clear_bit

By removing the mutex_lock/unlock around clear_bit, you're allowing 
device_unregister() to race with v4l2_open(). The device can be unregistered 
between the video_devdata() and video_get() calls.

Could you confirm my analysis ?

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to