]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:21 +0000 (12:43 -0700)
commitf6d37e73dcf0ba416ccf98fb4edc84509d097a1c
tree67752d48cc8df60ff4e4a6a79744d6c14729425e
parent40bb77169fefe5826d4f54fcc9c40a4fc22bf3e9
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