From: Nikolay Aleksandrov Date: Fri, 13 Nov 2015 14:20:24 +0000 (+0100) Subject: net: fix __netdev_update_features return on ndo_set_features failure X-Git-Tag: v3.2.75~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb62cdf556744e4e98b2c51abf10c3a108b4c373;p=pandora-kernel.git net: fix __netdev_update_features return on ndo_set_features failure commit 00ee5927177792a6e139d50b6b7564d35705556a upstream. If ndo_set_features fails __netdev_update_features() will return -1 but this is wrong because it is expected to return 0 if no features were changed (see netdev_update_features()), which will cause a netdev notifier to be called without any actual changes. Fix this by returning 0 if ndo_set_features fails. Fixes: 6cb6a27c45ce ("net: Call netdev_features_change() from netdev_update_features()") CC: Michał Mirosław Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed