Commit 4438e9d
enic: do not call enic_change_mtu in enic_probe
commit cb5c656 upstream.
In commit ab123fe ("enic: handle mtu change for vf properly")
ASSERT_RTNL() is added to _enic_change_mtu() to prevent it from being
called without rtnl held. enic_probe() calls enic_change_mtu()
without rtnl held. At this point netdev is not registered yet.
Remove call to enic_change_mtu and assign the mtu to netdev->mtu.
Fixes: ab123fe ("enic: handle mtu change for vf properly")
Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 55c6de1 commit 4438e9d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2681 | 2681 | | |
2682 | 2682 | | |
2683 | 2683 | | |
2684 | | - | |
2685 | 2684 | | |
2686 | 2685 | | |
2687 | 2686 | | |
| |||
2731 | 2730 | | |
2732 | 2731 | | |
2733 | 2732 | | |
| 2733 | + | |
2734 | 2734 | | |
2735 | 2735 | | |
2736 | 2736 | | |
| |||
0 commit comments