i915: add missing return in error path.
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2bdf00b221
commit
e7d22bc3cb
@ -146,6 +146,7 @@ i915_gem_pread_ioctl(struct drm_device *dev, void *data,
|
||||
if (ret != 0) {
|
||||
drm_gem_object_unreference(obj);
|
||||
mutex_unlock(&dev->struct_mutex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
offset = args->offset;
|
||||
|
Loading…
Reference in New Issue
Block a user