[PPP] generic: Call skb_cow_head before scribbling over skb
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Sep 2007 23:21:42 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2007 23:21:42 +0000 (16:21 -0700)
commit7b797d5b150775d717cb03b5ada28b8bad99afab
tree086b28889711612bcb2ea80c30e85116f617c0f7
parentd9cc20484e5e48c6a5deb4387c20fd45bfbdde8c
[PPP] generic: Call skb_cow_head before scribbling over skb

It's rude to write over data that other people are still using.  So call
skb_cow_head before PPP proceeds to modify the skb data.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c