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] [thread-next>] [day] [month] [year] [list]
Message-ID: <46B2F1B9.9010605@suse.de>
Date:	Fri, 03 Aug 2007 18:13:29 +0900
From:	Tejun Heo <teheo@...e.de>
To:	Brandon Philips <brandon@...e.de>
CC:	netdev@...r.kernel.org, Brandon Philips <bphilips@...e.de>
Subject: Re: [patch 2/5][RFC] Update net core to use devres.

> +static inline void * register_netdev_devres(struct device *gendev,
> +						struct net_device *dev)
> +{
> +	struct net_device **p;
> +
> +	/* 0 size because we don't need it. The net_device is already alloc'd
> +	 * in alloc_netdev_mq.  We can't use devm_kzalloc in alloc_netdeev_mq
> +	 * because a net_device cannot be free'd directly as it can be a
> +	 * kobject.  See free_netdev.
> +	 */
> +	p = devres_alloc(devm_free_netdev, 0, GFP_KERNEL);

s/0/sizeof(*p)/

-- 
tejun
-
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