Revert "net: rtnetlink: fix module reference count leak issue in rtnetlink_rcv_msg"

This reverts commit 283ee8ce3b which is
commit 5b22f62724a0a09e00d301abf5b57b0c12be8a16 upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Id94f628d7244f7360069b2f03e192007b5eb1c9c
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2025-10-31 07:57:57 +00:00
commit 49a5ba893c

View file

@ -5279,7 +5279,6 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
if (kind == RTNL_KIND_DEL && (nlh->nlmsg_flags & NLM_F_BULK) &&
!(flags & RTNL_FLAG_BULK_DEL_SUPPORTED)) {
NL_SET_ERR_MSG(extack, "Bulk delete is not supported");
module_put(owner);
goto err_unlock;
}