diff options
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | 2015-11-13 14:20:24 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-16 19:56:03 (GMT) |
commit | 00ee5927177792a6e139d50b6b7564d35705556a (patch) | |
tree | 51d79c6a16b5ad9280d1bca48db4cc91d0ecbec2 /drivers/vfio | |
parent | 5f8dc33e8ee7e59bee3bc6dc2088807a384b285a (diff) | |
download | linux-00ee5927177792a6e139d50b6b7564d35705556a.tar.xz |
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>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions