rtnetlink.c (446279168e030fd0ed68e2bba336bef8bb3da352) rtnetlink.c (5b22f62724a0a09e00d301abf5b57b0c12be8a16)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * Routing netlink socket interface: protocol independent part.
8 *

--- 6056 unchanged lines hidden (view full) ---

6065 err = -EPROTONOSUPPORT;
6066 goto out_unlock;
6067 }
6068
6069 flags = link->flags;
6070 if (kind == RTNL_KIND_DEL && (nlh->nlmsg_flags & NLM_F_BULK) &&
6071 !(flags & RTNL_FLAG_BULK_DEL_SUPPORTED)) {
6072 NL_SET_ERR_MSG(extack, "Bulk delete is not supported");
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * INET An implementation of the TCP/IP protocol suite for the LINUX
4 * operating system. INET is implemented using the BSD Socket
5 * interface as the means of communication with the user level.
6 *
7 * Routing netlink socket interface: protocol independent part.
8 *

--- 6056 unchanged lines hidden (view full) ---

6065 err = -EPROTONOSUPPORT;
6066 goto out_unlock;
6067 }
6068
6069 flags = link->flags;
6070 if (kind == RTNL_KIND_DEL && (nlh->nlmsg_flags & NLM_F_BULK) &&
6071 !(flags & RTNL_FLAG_BULK_DEL_SUPPORTED)) {
6072 NL_SET_ERR_MSG(extack, "Bulk delete is not supported");
6073 module_put(owner);
6073 goto err_unlock;
6074 }
6075
6076 if (flags & RTNL_FLAG_DOIT_UNLOCKED) {
6077 doit = link->doit;
6078 rcu_read_unlock();
6079 if (doit)
6080 err = doit(skb, nlh, extack);

--- 135 unchanged lines hidden ---
6074 goto err_unlock;
6075 }
6076
6077 if (flags & RTNL_FLAG_DOIT_UNLOCKED) {
6078 doit = link->doit;
6079 rcu_read_unlock();
6080 if (doit)
6081 err = doit(skb, nlh, extack);

--- 135 unchanged lines hidden ---