[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7OrNoa7_J-rOskxgdvkM5gAnQyoFBeCXSziY7XMd-yLNA@mail.gmail.com>
Date: Wed, 12 Mar 2014 13:58:57 -0700
From: Cong Wang <cwang@...pensource.com>
To: Vivek Goyal <vgoyal@...hat.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
cgroups@...r.kernel.org, netdev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>, tj@...nel.org,
ssorce@...hat.com, jkaluza@...hat.com, lpoetter@...hat.com,
kay@...hat.com
Subject: Re: [PATCH 2/2] net: Implement SO_PEERCGROUP
On Wed, Mar 12, 2014 at 1:46 PM, Vivek Goyal <vgoyal@...hat.com> wrote:
> @@ -1098,6 +1135,16 @@ static int unix_stream_connect(struct socket *sock, struct sockaddr *uaddr,
> if (newsk == NULL)
> goto out;
>
> + err = init_peercgroup(newsk);
> + if (err)
> + goto out;
> +
> + err = alloc_cgroup_path(sk);
> + if (err)
> + goto out;
> +
> + err = -ENOMEM;
> +
Don't we need to free the cgroup_path on error path
in this function?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists