[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <B7B4BB465792624BAF51F33077E99065DC5D8DC3@ALA-MBD.corp.ad.wrs.com>
Date: Mon, 1 Jul 2019 09:53:58 +0000
From: "Hallsmark, Per" <Per.Hallsmark@...driver.com>
To: Alexey Dobriyan <adobriyan@...il.com>
CC: "David S. Miller" <davem@...emloft.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH] let proc net directory inodes reflect to active net
namespace
Indeed it does! :-)
I'll make a new version.
________________________________________
From: Alexey Dobriyan [adobriyan@...il.com]
Sent: Saturday, June 29, 2019 15:29
To: Hallsmark, Per
Cc: David S. Miller; linux-kernel@...r.kernel.org; netdev@...r.kernel.org
Subject: Re: [PATCH] let proc net directory inodes reflect to active net namespace
On Tue, Jun 25, 2019 at 10:36:06AM +0000, Hallsmark, Per wrote:
> +struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name,
> + struct proc_dir_entry *parent)
> +{
> + struct proc_dir_entry *pde;
> +
> + pde = proc_mkdir_data(name, 0, parent, net);
> + pde->proc_dops = &proc_net_dentry_ops;
> +
> + return pde;
> +}
This requires NULL check at least.
Powered by blists - more mailing lists