Skip to content

Commit

Permalink
drm/i915: print warning if vmi915_gem_fault error is not handled
Browse files Browse the repository at this point in the history
Falling into default case in vmi915_gem_fault is a bug. Be more
verbose about it.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Mika Kuoppala authored and Daniel Vetter committed Oct 4, 2012
1 parent e79e0fe commit 4d0f817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,7 @@ int i915_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
case -ENOMEM:
return VM_FAULT_OOM;
default:
WARN_ON_ONCE(ret);
return VM_FAULT_SIGBUS;
}
}
Expand Down

0 comments on commit 4d0f817

Please sign in to comment.