1. 04 2月, 2015 1 次提交
    • A
      netlink: make the check for "send from tx_ring" deterministic · a8866ff6
      Al Viro 提交于
      As it is, zero msg_iovlen means that the first iovec in the kernel
      array of iovecs is left uninitialized, so checking if its ->iov_base
      is NULL is random.  Since the real users of that thing are doing
      sendto(fd, NULL, 0, ...), they are getting msg_iovlen = 1 and
      msg_iov[0] = {NULL, 0}, which is what this test is trying to catch.
      As suggested by davem, let's just check that msg_iovlen was 1 and
      msg_iov[0].iov_base was NULL - _that_ is well-defined and it catches
      what we want to catch.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      a8866ff6
  2. 30 1月, 2015 4 次提交
  3. 29 1月, 2015 6 次提交
  4. 28 1月, 2015 29 次提交