drm/sis: missing mutex unlock in error path.

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>
This commit is contained in:
Roel Kluin 2007-11-05 10:53:18 +10:00 committed by Dave Airlie
parent 7fc86860cf
commit 038477aa15

View File

@ -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;
}