diff options
author | Ken-ichirou MATSUZAWA <chamaken@gmail.com> | 2015-08-20 12:43:53 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-23 16:04:46 -0700 |
commit | c953e23936f902c7719166327e3113639105c981 (patch) | |
tree | ee8594db6b25182cb5c37032eff933810b218c6f /samples | |
parent | 0bad90985d39e69ca035fdd70bcc743812641d18 (diff) | |
download | op-kernel-dev-c953e23936f902c7719166327e3113639105c981.zip op-kernel-dev-c953e23936f902c7719166327e3113639105c981.tar.gz |
netlink: mmap: fix tx type check
I can't send netlink message via mmaped netlink socket since
commit: a8866ff6a5bce7d0ec465a63bc482a85c09b0d39
netlink: make the check for "send from tx_ring" deterministic
msg->msg_iter.type is set to WRITE (1) at
SYSCALL_DEFINE6(sendto, ...
import_single_range(WRITE, ...
iov_iter_init(1, WRITE, ...
call path, so that we need to check the type by iter_is_iovec()
to accept the WRITE.
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions