Phonet: Correct header retrieval after pskb_may_pull
commit2556c3ee6403113deb5a310826e80132adb3b1ee
authorKumar Sanghvi <kumar.sanghvi@stericsson.com>
Mon, 27 Sep 2010 23:10:42 +0000 (27 23:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 19:00:09 +0000 (22 11:00 -0800)
tree4501f74fc86cb2d43dfcb88df1669453919fe849
parentf38eaf1feb023c286b3c5e37185feb39b8b78b36
Phonet: Correct header retrieval after pskb_may_pull

[ Upstream commit a91e7d471e2e384035b9746ea707ccdcd353f5dd ]

Retrieve the header after doing pskb_may_pull since, pskb_may_pull
could change the buffer structure.

This is based on the comment given by Eric Dumazet on Phonet
Pipe controller patch for a similar problem.

Signed-off-by: Kumar Sanghvi <kumar.sanghvi@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: RĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/phonet/pep.c