From: Alexander Y. Fomichev Date: Mon, 15 Sep 2014 10:22:35 +0000 (+0400) Subject: net: fix creation adjacent device symlinks X-Git-Tag: fixes-for-v3.18-merge-window~87^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ce64c79c4decdeb1afe0bf2f6ef834b382871d1;p=pandora-kernel.git net: fix creation adjacent device symlinks __netdev_adjacent_dev_insert may add adjust device of different net namespace, without proper check it leads to emergence of broken sysfs links from/to devices in another namespace. Fix: rewrite netdev_adjacent_is_neigh_list macro as a function, move net_eq check into netdev_adjacent_is_neigh_list. (thanks David) related to: 4c75431ac3520631f1d9e74aa88407e6374dbbc4 Signed-off-by: Alexander Fomichev Signed-off-by: David S. Miller --- Reading git-diff-tree failed