Skip to content
Snippets Groups Projects
Commit 6dbc9c89 authored by Yoann Padioleau's avatar Yoann Padioleau Committed by David S. Miller
Browse files

[PATCH] dev->priv to netdev_priv(dev), for drivers/net/wireless

Replacing accesses to dev->priv to netdev_priv(dev). The replacment
is safe when netdev_priv is used to access a private structure that is
right next to the net_device structure in memory. Cf
http://groups.google.com/group/comp.os.linux.development.system/browse_thread/thread/de19321bcd94dbb8/0d74a4adcd6177bd


This is the case when the net_device structure was allocated with
a call to alloc_netdev or one of its derivative.

Signed-off-by: default avatarYoann Padioleau <padator@wanadoo.fr>
Cc: mcgrof@gmail.com
Cc: linux-wireless@vger.kernel.org
Cc: akpm@linux-foundation.org
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8951554d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment