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>
This commit is contained in:
@@ -45,7 +45,7 @@ static int ppp_open(struct net_device *dev)
|
||||
int (*old_ioctl)(struct net_device *, struct ifreq *, int);
|
||||
int result;
|
||||
|
||||
dev->priv = &state(hdlc)->syncppp_ptr;
|
||||
dev->ml_priv = &state(hdlc)->syncppp_ptr;
|
||||
state(hdlc)->syncppp_ptr = &state(hdlc)->pppdev;
|
||||
state(hdlc)->pppdev.dev = dev;
|
||||
|
||||
|
Reference in New Issue
Block a user