Date: Sun, 25 Feb 2018 10:47:33 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r329978 - stable/11/sys/compat/linuxkpi/common/include/linux Message-ID: <201802251047.w1PAlXp0023985@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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__)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802251047.w1PAlXp0023985>