Tag: 21a73397c0cea688a37c532d1029fc8ecbd88fc6

[media] media: saa7146: don’t use mutex_lock_interruptible() in device_release()

Author: Cyril Roelandt <tipecaml@gmail.com> Use uninterruptible mutex_lock in the release() file op to make sure all resources are properly freed when a process is being terminated. Returning -ERESTARTSYS has no effect for a terminating process and this may cause driver resources not to be released. This was found using the following semantic patch (http://coccinelle.lip6.fr/): @r@ …

Continue reading