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
This commit is contained in:
parent
2460cbb4a6
commit
314d034088
@ -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__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user