Staging: batman-adv: ensure that eth_type_trans gets linear memory
commit2f1646788f4d3cd2ce5cb24d13096afbd8782665
authorMarek Lindner <lindner_marek@yahoo.de>
Sun, 21 Nov 2010 23:55:40 +0000 (22 00:55 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Nov 2010 19:09:08 +0000 (29 11:09 -0800)
tree46fb0e208be1a2b3b55f8d8930d174e699d0c08e
parent4f26559156eae1b616ef2d0d168bd25f493e02f4
Staging: batman-adv: ensure that eth_type_trans gets linear memory

eth_type_trans tries to pull data with the length of the ethernet header
from the skb. We only ensured that enough data for the first ethernet
header and the batman header is available in non-paged memory of the skb
and not for the ethernet after the batman header.

eth_type_trans would fail sometimes with drivers which don't ensure that
all there data is perfectly linearised.

Reported-by: Rafal Lesniak <lesniak@eresi-project.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/soft-interface.c