diff options
| -rw-r--r-- | fs/exportfs/expfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c index c8a3dfda1764..c69927bed4ef 100644 --- a/fs/exportfs/expfs.c +++ b/fs/exportfs/expfs.c | |||
| @@ -77,7 +77,7 @@ static bool dentry_connected(struct dentry *dentry) | |||
| 77 | struct dentry *parent = dget_parent(dentry); | 77 | struct dentry *parent = dget_parent(dentry); |
| 78 | 78 | ||
| 79 | dput(dentry); | 79 | dput(dentry); |
| 80 | if (IS_ROOT(dentry)) { | 80 | if (dentry == parent) { |
| 81 | dput(parent); | 81 | dput(parent); |
| 82 | return false; | 82 | return false; |
| 83 | } | 83 | } |
