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>
This commit is contained in:

committed by
Patrick McHardy

parent
176252746e
commit
dd5b6ce6fd
@@ -1106,6 +1106,7 @@ void netlink_set_err(struct sock *ssk, u32 pid, u32 group, int code)
|
||||
|
||||
read_unlock(&nl_table_lock);
|
||||
}
|
||||
EXPORT_SYMBOL(netlink_set_err);
|
||||
|
||||
/* must be called with netlink table grabbed */
|
||||
static void netlink_update_socket_mc(struct netlink_sock *nlk,
|
||||
|
Reference in New Issue
Block a user