Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3b7b454 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "netlink: Queue the kernel socket after setting the flag."

parents ca743190 6059ddb2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2268,12 +2268,12 @@ __netlink_kernel_create(struct net *net, int unit, struct module *module,
	if (cfg && cfg->input)
		nlk_sk(sk)->netlink_rcv = cfg->input;

	if (netlink_insert(sk, net, 0))
		goto out_sock_release;

	nlk = nlk_sk(sk);
	nlk->flags |= NETLINK_KERNEL_SOCKET;

	if (netlink_insert(sk, net, 0))
		goto out_sock_release;

	netlink_table_grab();
	if (!nl_table[unit].registered) {
		nl_table[unit].groups = groups;