Merge tag 'wireless-2023-11-29' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / fs / debugfs / file.c
index 5568cdea3490a444a86884cc0a0006eb3d217429..a5ade8c163754bf09036d81eff378f3ff5c545cd 100644 (file)
@@ -1039,7 +1039,7 @@ static ssize_t debugfs_write_file_str(struct file *file, const char __user *user
        new[pos + count] = '\0';
        strim(new);
 
-       rcu_assign_pointer(*(char **)file->private_data, new);
+       rcu_assign_pointer(*(char __rcu **)file->private_data, new);
        synchronize_rcu();
        kfree(old);