Merge tag 'ovl-update-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs
[linux-2.6-microblaze.git] / net / 8021q / vlan.c
index 8b64411..fb3d326 100644 (file)
@@ -71,6 +71,9 @@ static int vlan_group_prealloc_vid(struct vlan_group *vg,
        if (array == NULL)
                return -ENOBUFS;
 
+       /* paired with smp_rmb() in __vlan_group_get_device() */
+       smp_wmb();
+
        vg->vlan_devices_arrays[pidx][vidx] = array;
        return 0;
 }