]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Linearize fragment packets before merge
authorSven Eckelmann <sven@narfation.org>
Sun, 6 Feb 2011 23:26:43 +0000 (23:26 +0000)
committerSven Eckelmann <sven@narfation.org>
Mon, 7 Feb 2011 23:54:31 +0000 (00:54 +0100)
commit71908eaa9cda398fd4d33f0f187f5605181992a1
treead3cd10621d05b18b1b403f28733e0bc11b8eb8f
parentdaf44ee56bffe14fb1e777e6a4d5f2a2ef592e75
batman-adv: Linearize fragment packets before merge

We access the data inside the skbs of two fragments directly using memmove
during the merge. The data of the skb could span over multiple skb pages. An
direct access without knowledge about the pages would lead to an invalid memory
access.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
[lindner_marek@yahoo.de: Move return from function to the end]
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/unicast.c