Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2caceb32 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull overlayfs fix from Miklos Szeredi:
 "This fixes a regression introduced in 4.8"

* 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
  ovl: fix d_real() for stacked fs
parents 92cf44e2 c4fcfc16
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -328,11 +328,11 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
	if (!real)
		goto bug;

	/* Handle recursion */
	real = d_real(real, inode, open_flags);

	if (!inode || inode == d_inode(real))
		return real;

	/* Handle recursion */
	return d_real(real, inode, open_flags);
bug:
	WARN(1, "ovl_d_real(%pd4, %s:%lu): real dentry not found\n", dentry,
	     inode ? inode->i_sb->s_id : "NULL", inode ? inode->i_ino : 0);