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)
commit531c9da8c854c5b075383253a57fdd4e0be82e99
treead3cd10621d05b18b1b403f28733e0bc11b8eb8f
parent1181e1daace88018b2ff66592aa10a4791d705ff
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