Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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>

authored by

Andy Lutomirski and committed by
Linus Torvalds
4f01ed22 a25045ff

+1 -1
+1 -1
drivers/firmware/efi/efivars.c
··· 231 231 232 232 static inline bool is_compat(void) 233 233 { 234 - if (IS_ENABLED(CONFIG_COMPAT) && is_compat_task()) 234 + if (IS_ENABLED(CONFIG_COMPAT) && in_compat_syscall()) 235 235 return true; 236 236 237 237 return false;