[PATCH 1/2] drm: restore open_count if drm_setup fails

2012-10-30 Thread Thomas Hellstrom
Reviewed-by: Thomas Hellstrom On 10/29/2012 06:35 PM, Ilija Hadzic wrote: > If drm_setup (called at first open) fails, the whole > open call has failed, so we should not keep the > open_count incremented. > > Signed-off-by: Ilija Hadzic > Cc: stable at vger.kernel.org > --- > drivers/gpu/drm/d

Re: [PATCH 1/2] drm: restore open_count if drm_setup fails

2012-10-30 Thread Thomas Hellstrom
Reviewed-by: Thomas Hellstrom On 10/29/2012 06:35 PM, Ilija Hadzic wrote: If drm_setup (called at first open) fails, the whole open call has failed, so we should not keep the open_count incremented. Signed-off-by: Ilija Hadzic Cc: sta...@vger.kernel.org --- drivers/gpu/drm/drm_fops.c | 5 ++

[PATCH 1/2] drm: restore open_count if drm_setup fails

2012-10-29 Thread Ilija Hadzic
If drm_setup (called at first open) fails, the whole open call has failed, so we should not keep the open_count incremented. Signed-off-by: Ilija Hadzic Cc: stable at vger.kernel.org --- drivers/gpu/drm/drm_fops.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gp

[PATCH 1/2] drm: restore open_count if drm_setup fails

2012-10-29 Thread Ilija Hadzic
If drm_setup (called at first open) fails, the whole open call has failed, so we should not keep the open_count incremented. Signed-off-by: Ilija Hadzic Cc: sta...@vger.kernel.org --- drivers/gpu/drm/drm_fops.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/d