]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "sparc64: Fix __copy_{to,from}_user_inatomic defines."
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 16 Dec 2013 21:01:00 +0000 (15:01 -0600)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:08:55 +0000 (15:08 +0100)
commitf68d72bc620b6b562c773ab4ffb26bad18fbc3ce
tree2e5e82f4dc403a883517979c46d789784288ee36
parent1d9e79d6ccb5b00cfe7e695b7bf29a9df421e037
Revert "sparc64: Fix __copy_{to,from}_user_inatomic defines."

This reverts commit 145e1c0023585e0e8f6df22316308ec61c5066b2.

This commit broke the behavior of __copy_from_user_inatomic when
it is only partially successful. Instead of returning the number
of bytes not copied, it now returns 1. This translates to the
wrong value being returned by iov_iter_copy_from_user_atomic.

xfstests generic/246 and LTP writev01 both fail on btrfs and nfs
because of this.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/uaccess_64.h