1. 04 3月, 2009 1 次提交
    • P
      netlink: invert error code in netlink_set_err() · 4843b93c
      Pablo Neira Ayuso 提交于
      The callers of netlink_set_err() currently pass a negative value
      as parameter for the error code. However, sk->sk_err wants a
      positive error value. Without this patch, skb_recv_datagram() called
      by netlink_recvmsg() may return a positive value to report an error.
      
      Another choice to fix this is to change callers to pass a positive
      error value, but this seems a bit inconsistent and error prone
      to me. Indeed, the callers of netlink_set_err() assumed that the
      (usual) negative value for error codes was fine before this patch :).
      
      This patch also includes some documentation in docbook format
      for netlink_set_err() to avoid this sort of confusion.
      Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4843b93c
  2. 03 3月, 2009 9 次提交
  3. 02 3月, 2009 5 次提交
  4. 01 3月, 2009 6 次提交
  5. 28 2月, 2009 19 次提交