From: Sven Eckelmann Date: Fri, 4 Mar 2011 21:36:41 +0000 (+0000) Subject: batman-adv: Disallow regular interface as mesh device X-Git-Tag: v2.6.39-rc1~468^2~151^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e44d8fe2b5c27ecc230f886d4cc49fcbd86f87a0;p=pandora-kernel.git batman-adv: Disallow regular interface as mesh device When trying to associate a net_device with another net_device which already exists, batman-adv assumes that this interface is a fully initialized batman mesh interface without checking it. The behaviour when accessing data behind netdev_priv of a random net_device is undefined and potentially dangerous. Reported-by: Linus Lüssing Signed-off-by: Marek Lindner --- Reading git-diff-tree failed