diff options
author | hselasky <hselasky@FreeBSD.org> | 2018-02-25 10:47:33 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2018-02-25 10:47:33 +0000 |
commit | e57a5b4d46c32b52725b3772b72e13c6822e1bc2 (patch) | |
tree | 6363222714af737dec63dadae87b4fcc11227639 /sys/compat | |
parent | 3a6316eca81ae3a905d0a17006c41c5637232ce6 (diff) | |
download | FreeBSD-src-e57a5b4d46c32b52725b3772b72e13c6822e1bc2.zip FreeBSD-src-e57a5b4d46c32b52725b3772b72e13c6822e1bc2.tar.gz |
MFC r329472:
Allow the put_user() function macro to put constant values by using the
existing __put_user() macro.
Submitted by: Johannes Lundberg <johalun0@gmail.com>
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/uaccess.h b/sys/compat/linuxkpi/common/include/linux/uaccess.h index c046e1c..a69e9cc 100644 --- a/sys/compat/linuxkpi/common/include/linux/uaccess.h +++ b/sys/compat/linuxkpi/common/include/linux/uaccess.h @@ -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__) |