Skip to content

Commit b7dec83

Browse files
committed
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Another couple of small ARM fixes. A patch from Masahiro Yamada who noticed that "make -jN all zImage" would end up generating bad images where N > 1, and a patch from Nicolas to fix the Marvell CPU user access optimisation code when page faults are disabled" * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: ARM: 8418/1: add boot image dependencies to not generate invalid images ARM: 8414/1: __copy_to_user_memcpy: fix mmap semaphore usage
2 parents d0b89bd + 3939f33 commit b7dec83

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

arch/arm/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ INSTALL_TARGETS = zinstall uinstall install
312312

313313
PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS)
314314

315+
bootpImage uImage: zImage
316+
zImage: Image
317+
315318
$(BOOT_TARGETS): vmlinux
316319
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@
317320

arch/arm/lib/uaccess_with_memcpy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n)
9696
}
9797

9898
/* the mmap semaphore is taken only if not in an atomic context */
99-
atomic = in_atomic();
99+
atomic = faulthandler_disabled();
100100

101101
if (!atomic)
102102
down_read(&current->mm->mmap_sem);

0 commit comments

Comments
 (0)