From: Andy Lutomirski Date: Tue, 22 Mar 2016 21:25:16 +0000 (-0700) Subject: drivers/firmware/efi/efivars.c: use in_compat_syscall() to check for compat callers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4f01ed221e2ef5e7efdb0ac89179b4faf4cc3c86;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers/firmware/efi/efivars.c: use in_compat_syscall() to check for compat callers 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 Reviewed-by: Matt Fleming Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c index b23a271c6ae5..096adcbcb5a9 100644 --- a/drivers/firmware/efi/efivars.c +++ b/drivers/firmware/efi/efivars.c @@ -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;