Skip to content

Commit

Permalink
drm/sis: missing mutex unlock in error path.
Browse files Browse the repository at this point in the history
airlied: separated this out from a patch on lkml.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Roel Kluin authored and Dave Airlie committed Nov 5, 2007
1 parent 7fc8686 commit 038477a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/drm/sis_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ static int sis_drm_alloc(struct drm_device *dev, struct drm_file *file_priv,
dev_priv->agp_initialized)) {
DRM_ERROR
("Attempt to allocate from uninitialized memory manager.\n");
mutex_unlock(&dev->struct_mutex);
return -EINVAL;
}

Expand Down

0 comments on commit 038477a

Please sign in to comment.