]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/core/rtnetlink.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[karo-tx-linux.git] / net / core / rtnetlink.c
index eaa057f14bcd4a7b4506709acbb090f0122bf4b4..1ad61a27ee582313681befafd3f1a34e0e610283 100644 (file)
@@ -1523,6 +1523,7 @@ static int do_setlink(const struct sk_buff *skb,
                        goto errout;
                }
                if (!netlink_ns_capable(skb, net->user_ns, CAP_NET_ADMIN)) {
+                       put_net(net);
                        err = -EPERM;
                        goto errout;
                }