From: Antonio Quartulli Date: Sat, 16 Feb 2013 13:42:39 +0000 (+0100) Subject: batman-adv: free an hard-interface before adding it X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~281^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb4b0d48645fa29bc0e12537d4e3556c4bf79ac7;p=pandora-kernel.git batman-adv: free an hard-interface before adding it When adding a new hard interface (e.g. wlan0) to a soft interface (e.g. bat0) and the former is already enslaved in another virtual interface (e.g. a software bridge) batman-adv has to free it first and then continue with the adding mechanism. In this way the behaviour becomes consistent with what "ip link set master" does. At the moment batman-adv enslaves the hard interface without checking for the master device, possibly causing strange behaviours which are never wanted by the users. Reported-by: Marek Lindner Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed