nefilter: nfnetlink: add nfnetlink_set_err and use it in ctnetlink
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 23 Mar 2009 12:21:06 +0000 (13:21 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 23 Mar 2009 12:21:06 +0000 (13:21 +0100)
commitdd5b6ce6fd465eab90357711c8e8124dc3a31ff0
treeebc40b018356e8cac36ba575e3f183c1a16b782b
parent176252746ebbc8db97e304345af1f2563c7dc139
nefilter: nfnetlink: add nfnetlink_set_err and use it in ctnetlink

This patch adds nfnetlink_set_err() to propagate the error to netlink
broadcast listener in case of memory allocation errors in the
message building.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/nfnetlink.h
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nfnetlink.c
net/netlink/af_netlink.c