X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=fs%2Fnamei.c;h=ddb6a7c2b3d4aee1c3512e064350822533968dc5;hb=06efc7df376659963ba4de26217ebdcdc2a6c09b;hp=e0b46eb0e2129ca337bba8e4634d96edf0683117;hpb=b5e16170f59b4ae38937b795a56a356fb95cca56;p=karo-tx-linux.git diff --git a/fs/namei.c b/fs/namei.c index e0b46eb0e212..ddb6a7c2b3d4 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -524,7 +524,7 @@ struct nameidata { struct inode *link_inode; unsigned root_seq; int dfd; -}; +} __randomize_layout; static void set_nameidata(struct nameidata *p, int dfd, struct filename *name) { @@ -3400,7 +3400,6 @@ out: struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag) { - static const struct qstr name = QSTR_INIT("/", 1); struct dentry *child = NULL; struct inode *dir = dentry->d_inode; struct inode *inode; @@ -3414,7 +3413,7 @@ struct dentry *vfs_tmpfile(struct dentry *dentry, umode_t mode, int open_flag) if (!dir->i_op->tmpfile) goto out_err; error = -ENOMEM; - child = d_alloc(dentry, &name); + child = d_alloc(dentry, &slash_name); if (unlikely(!child)) goto out_err; error = dir->i_op->tmpfile(dir, child, mode);