]> git.baikalelectronics.ru Git - kernel.git/commit
Phonet: Correct header retrieval after pskb_may_pull
authorKumar Sanghvi <kumar.sanghvi@stericsson.com>
Mon, 27 Sep 2010 23:10:42 +0000 (23:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Sep 2010 02:41:04 +0000 (19:41 -0700)
commit41909862f919ec5731ebc27dc34ed1e5d49f97b0
treebcace390a9075fba545157872116249c40be0b5c
parent8f2b649428ed5e42eb981d43b681f936bb8f0a9e
Phonet: Correct header retrieval after pskb_may_pull

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>
net/phonet/pep.c