• Steven J. Magnani's avatar
    microblaze: fix get_user/put_user side-effects · 538722ca
    Steven J. Magnani authored
    The Microblaze implementations of get_user() and (MMU) put_user() evaluate
    the address argument more than once. This causes unexpected side-effects for
    invocations that include increment operators, i.e. get_user(foo, bar++).
    
    This patch also removes the distinction between MMU and noMMU put_user().
    
    Without the patch:
      $ echo 1234567890 > /proc/sys/kernel/core_pattern
      $ cat /proc/sys/kernel/core_pattern
      12345
    Signed-off-by: default avatarSteven J. Magnani <steve@digidescorp.com>
    538722ca
uaccess.h 11.1 KB