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 <johal...@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__)
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to