lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080228.141401.147530141.davem@davemloft.net>
Date:	Thu, 28 Feb 2008 14:14:01 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	wangchen@...fujitsu.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 11/15] [IPV6]: Use proc_create() to setup ->proc_fops
 first

From: Wang Chen <wangchen@...fujitsu.com>
Date: Thu, 28 Feb 2008 18:57:49 +0800

> Use proc_create() to make sure that ->proc_fops be setup before gluing
> PDE to main tree.
> 
> Signed-off-by: Wang Chen <wangchen@...fujitsu.com>

Applied.

> @@ -217,12 +217,12 @@ int snmp6_register_dev(struct inet6_dev *idev)
>  	if (!proc_net_devsnmp6)
>  		return -ENOENT;
>  
> -	p = create_proc_entry(idev->dev->name, S_IRUGO, proc_net_devsnmp6);
> +	p = proc_create(idev->dev->name, S_IRUGO,
> +			proc_net_devsnmp6, &snmp6_seq_fops);
>  	if (!p)
>  		return -ENOMEM;
>  
>  	p->data = idev;
> -	p->proc_fops = &snmp6_seq_fops;
>  
>  	idev->stats.proc_dir_entry = p;
>  	return 0;

->data visibility issue
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ