drm_open_helper() from drm_fops.c had a missing mutex_unlock in a error path.
This was caught by smatch (http://repo.or.cz/w/smatch.git/). Compile tested. regards, dan carpenter Signed-off-by: Dan Carpenter <erro...@gmail.com> --- orig/drivers/gpu/drm/drm_fops.c 2009-03-26 23:28:21.000000000 +0300 +++ devel/drivers/gpu/drm/drm_fops.c 2009-03-26 23:29:15.000000000 +0300 @@ -274,6 +274,7 @@ /* create a new master */ priv->minor->master = drm_master_create(priv->minor); if (!priv->minor->master) { + mutex_unlock(&dev->struct_mutex); ret = -ENOMEM; goto out_free; } ------------------------------------------------------------------------------ -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel