diff options
author | Clark Williams <williams@redhat.com> | 2020-02-19 19:30:43 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2020-02-19 19:30:43 -0600 |
commit | b7ddfa63414de061f663ce974da7b2850848015c (patch) | |
tree | 4d68d6200675967769b16a44c0d0405cb9525619 /net/core | |
parent | a273b3b8f863493fa2bb270bc8292d8383fea41c (diff) | |
parent | 5b7a2c7d46bf29fa59e746a520369c0fc30fc655 (diff) | |
download | linux-rt-b7ddfa63414de061f663ce974da7b2850848015c.tar.gz |
Merge tag 'v4.9.207' into v4.9-rt
This is the 4.9.207 stable release
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 06e9d2b53d78..e33c3fd3ef43 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6618,7 +6618,8 @@ static int __dev_set_mtu(struct net_device *dev, int new_mtu) if (ops->ndo_change_mtu) return ops->ndo_change_mtu(dev, new_mtu); - dev->mtu = new_mtu; + /* Pairs with all the lockless reads of dev->mtu in the stack */ + WRITE_ONCE(dev->mtu, new_mtu); return 0; } |