Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Oops -- drop the GEM obj...
details: https://anonhg.NetBSD.org/src/rev/2cd0400a21eb
branches: trunk
changeset: 329343:2cd0400a21eb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue May 20 15:15:04 2014 +0000
description:
Oops -- drop the GEM object reference on error too.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_gem.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 572f3db2a7d0 -r 2cd0400a21eb sys/external/bsd/drm2/dist/drm/i915/i915_gem.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Tue May 20 15:12:41 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c Tue May 20 15:15:04 2014 +0000
@@ -1491,8 +1491,10 @@
UVM_MAPFLAG((VM_PROT_READ | VM_PROT_WRITE),
(VM_PROT_READ | VM_PROT_WRITE), UVM_INH_COPY, UVM_ADV_NORMAL,
0));
- if (ret)
+ if (ret) {
+ drm_gem_object_unreference_unlocked(obj);
return ret;
+ }
uao_reference(obj->gemo_shm_uao);
drm_gem_object_unreference_unlocked(obj);
#else
Home |
Main Index |
Thread Index |
Old Index