diff options
author | David S. Miller <davem@davemloft.net> | 2018-08-11 18:43:38 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-10 10:06:53 -0700 |
commit | 8b69bd7d8a8927d537f134c37bcca6cbfa58e1b2 (patch) | |
tree | 4f15d43212cf8d4ccb712d23e5c7c21999e39477 /drivers/net/ppp | |
parent | 0c69198d81dcf4918d9cf5fe72504eecdd49f839 (diff) | |
download | linux-8b69bd7d8a8927d537f134c37bcca6cbfa58e1b2.tar.gz linux-8b69bd7d8a8927d537f134c37bcca6cbfa58e1b2.tar.bz2 linux-8b69bd7d8a8927d537f134c37bcca6cbfa58e1b2.zip |
ppp: Remove direct skb_queue_head list pointer access.
Add a helper, __skb_peek(), and use it in ppp_mp_reconstruct().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ppp')
-rw-r--r-- | drivers/net/ppp/ppp_generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c index 02ad03a2fab7..500bc0027c1b 100644 --- a/drivers/net/ppp/ppp_generic.c +++ b/drivers/net/ppp/ppp_generic.c @@ -2400,7 +2400,7 @@ ppp_mp_reconstruct(struct ppp *ppp) if (ppp->mrru == 0) /* do nothing until mrru is set */ return NULL; - head = list->next; + head = __skb_peek(list); tail = NULL; skb_queue_walk_safe(list, p, tmp) { again: |