]> git.baikalelectronics.ru Git - kernel.git/commit
hysdn: Kill directly reference of netdev->priv
authorWang Chen <wangchen@cn.fujitsu.com>
Wed, 3 Dec 2008 23:49:07 +0000 (15:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Dec 2008 23:49:07 +0000 (15:49 -0800)
commit665639a82d883be972bab41657a5e963c86fabd0
treef64ddc337bc56ae7fa9342fd1ab2da2ebb49e5ff
parent8ba60fa17b1f3cdfd7e1d8f95b318862d7d8249b
hysdn: Kill directly reference of netdev->priv

Usually, netdev->priv should point to the memory of private
data which is allocated in alloc_netdev().
netdev_priv() is used to get the address of the private data.

Change the netdev->priv pointer to another memory is wrong.
Use netdev->ml_priv for this case.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hysdn/hysdn_net.c