1
From 469571728098c94c937865548df0b049a5395503 Mon Sep 17 00:00:00 2001
2
From: Pavel Emelyanov <xemul@parallels.com>
3
Date: Thu, 17 Feb 2011 12:12:23 +0300
4
Subject: [PATCH 5/6] ve: Fix d_path return code when no buffer given
6
In case we call d_path with NULL buffer (d_root_check) the
7
return is *always* NULL, which is not what we actually want...
9
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
11
fs/dcache.c | 7 +++++--
12
1 files changed, 5 insertions(+), 2 deletions(-)
14
diff --git a/fs/dcache.c b/fs/dcache.c
15
index 7fce87d..dc638a3 100644
18
@@ -2037,7 +2037,7 @@ out:
19
if (deleted && buffer &&
20
prepend(&end, &buflen, " (deleted)", 10) != 0)
24
spin_unlock(&vfsmount_lock);
25
return buffer ? retval : NULL;
27
@@ -2070,7 +2070,10 @@ global_root:
30
retval = ERR_PTR(-ENAMETOOLONG);
33
+ spin_unlock(&vfsmount_lock);
37
EXPORT_SYMBOL(__d_path);