Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2018 21:47:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329472 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201802172147.w1HLlFq3079629@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sat Feb 17 21:47:15 2018
New Revision: 329472
URL: https://svnweb.freebsd.org/changeset/base/329472

Log:
  Allow the put_user() function macro to put constant values by using the
  existing __put_user() macro.
  
  MFC after:	1 week
  Submitted by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/uaccess.h

Modified: head/sys/compat/linuxkpi/common/include/linux/uaccess.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/uaccess.h	Sat Feb 17 21:40:19 2018	(r329471)
+++ head/sys/compat/linuxkpi/common/include/linux/uaccess.h	Sat Feb 17 21:47:15 2018	(r329472)
@@ -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?201802172147.w1HLlFq3079629>