]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[NETLINK]: Remove error pointer from netlink message handler
authorThomas Graf <tgraf@suug.ch>
Fri, 23 Mar 2007 06:30:12 +0000 (23:30 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:27:30 +0000 (22:27 -0700)
commit1d00a4eb42bdade33a6ec0961cada93577a66ae6
treea181b141818f594eb544601386bf09e45e6193bb
parent45e7ae7f716086994e4e747226881f901c67b031
[NETLINK]: Remove error pointer from netlink message handler

The error pointer argument in netlink message handlers is used
to signal the special case where processing has to be interrupted
because a dump was started but no error happened. Instead it is
simpler and more clear to return -EINTR and have netlink_run_queue()
deal with getting the queue right.

nfnetlink passed on this error pointer to its subsystem handlers
but only uses it to signal the start of a netlink dump. Therefore
it can be removed there as well.

This patch also cleans up the error handling in the affected
message handlers to be consistent since it had to be touched anyway.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nfnetlink.h
include/net/netlink.h
net/core/rtnetlink.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nfnetlink.c
net/netfilter/nfnetlink_log.c
net/netfilter/nfnetlink_queue.c
net/netlink/af_netlink.c
net/netlink/genetlink.c
net/xfrm/xfrm_user.c