i915, uaccess: Fix redundant CLAC
authorPeter Zijlstra <peterz@infradead.org>
Thu, 28 Feb 2019 12:52:31 +0000 (13:52 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2019 07:36:28 +0000 (09:36 +0200)
commit8f4faed01e3015955801c8ef066ec7fd7a8b3902
tree0760dcd27cd7ba347fd77a33a7c4aacfda2e22e2
parent67a0514afdbb8b2fc70b771b8c77661a9cb9d3a9
i915, uaccess: Fix redundant CLAC

New tooling noticed this:

 drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x3c: redundant UACCESS disable
 drivers/gpu/drm/i915/i915_gem_execbuffer.o: warning: objtool: .altinstr_replacement+0x66: redundant UACCESS disable

You don't need user_access_end() if user_access_begin() fails.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/gpu/drm/i915/i915_gem_execbuffer.c