drivers/firmware/efi/efivars.c: use in_compat_syscall() to check for compat callers
authorAndy Lutomirski <luto@kernel.org>
Tue, 22 Mar 2016 21:25:16 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
This should make no difference on any architecture, as x86's historical
is_compat_task behavior really did check whether the calling syscall was
a compat syscall.  x86's is_compat_task is going away, though.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/firmware/efi/efivars.c

index b23a271c6ae52f4f7460dd905b73322b18b41d63..096adcbcb5a99720c77bc69af458bf5f9628dbd4 100644 (file)
@@ -231,7 +231,7 @@ sanity_check(struct efi_variable *var, efi_char16_t *name, efi_guid_t vendor,
 
 static inline bool is_compat(void)
 {
-       if (IS_ENABLED(CONFIG_COMPAT) && is_compat_task())
+       if (IS_ENABLED(CONFIG_COMPAT) && in_compat_syscall())
                return true;
 
        return false;