Nikolay Aleksandrov 00ee592717 net: fix __netdev_update_features return on ndo_set_features failure
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 <mirq-linux@rere.qmqm.pl>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-16 14:56:03 -05:00
..
2015-11-09 21:55:48 -05:00
2015-04-02 14:04:59 -04:00
2015-10-08 04:27:03 -07:00
2015-05-17 23:41:11 -04:00
2015-08-29 13:05:16 -07:00
2015-10-23 05:44:28 -07:00
2015-10-26 22:24:22 -07:00
2015-10-08 05:26:35 -07:00