svn commit: r329978 - stable/11/sys/compat/linuxkpi/common/include/linux
Hans Petter Selasky
hselasky at FreeBSD.org
Sun Feb 25 10:47:34 UTC 2018
Author: hselasky
Date: Sun Feb 25 10:47:33 2018
New Revision: 329978
URL: https://svnweb.freebsd.org/changeset/base/329978
Log:
MFC r329472:
Allow the put_user() function macro to put constant values by using the
existing __put_user() macro.
Submitted by: Johannes Lundberg <johalun0 at gmail.com>
Sponsored by: Mellanox Technologies
Modified:
stable/11/sys/compat/linuxkpi/common/include/linux/uaccess.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linuxkpi/common/include/linux/uaccess.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/uaccess.h Sun Feb 25 10:44:47 2018 (r329977)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/uaccess.h Sun Feb 25 10:47:33 2018 (r329978)
@@ -58,7 +58,7 @@
linux_copyout(&(__x), (_p), sizeof(*(_p))); \
})
#define get_user(_x, _p) linux_copyin((_p), &(_x), sizeof(*(_p)))
-#define put_user(_x, _p) linux_copyout(&(_x), (_p), sizeof(*(_p)))
+#define put_user(_x, _p) __put_user(_x, _p)
#define clear_user(...) linux_clear_user(__VA_ARGS__)
#define access_ok(...) linux_access_ok(__VA_ARGS__)
More information about the svn-src-stable-11
mailing list