]> git.baikalelectronics.ru Git - kernel.git/commit
syncppp: Fix crashes.
authorDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 10:29:11 +0000 (03:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2008 10:29:11 +0000 (03:29 -0700)
commit10b996e3d7dca3b5e2174941f2398fedf7b2bc65
treeafcc69d6ec071f5d0bb19517635e9b3cf8f668ba
parentd9f622029376cfc05ba2f5f944dbc2d472a6f130
syncppp: Fix crashes.

The syncppp layer wants a mid-level netdev private pointer.

It was using netdev->priv but that only worked by accident,
and thus this scheme was broken when the device private
allocation strategy changed.

Add a proper mid-layer private pointer for uses like this,
update syncppp and all users, and remove the HDLC_PPP broken
tag from drivers/net/wan/Kconfig

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/Kconfig
drivers/net/wan/cosa.c
drivers/net/wan/hdlc_ppp.c
drivers/net/wan/hostess_sv11.c
drivers/net/wan/lmc/lmc_main.c
drivers/net/wan/sealevel.c
include/linux/netdevice.h
include/net/syncppp.h