diff options
-rw-r--r-- | security/apparmor/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/path.c b/security/apparmor/path.c index c31ce837fef4..3dd605c69970 100644 --- a/security/apparmor/path.c +++ b/security/apparmor/path.c | |||
@@ -137,7 +137,7 @@ ok: | |||
137 | /* disconnected path, don't return pathname starting | 137 | /* disconnected path, don't return pathname starting |
138 | * with '/' | 138 | * with '/' |
139 | */ | 139 | */ |
140 | error = -ESTALE; | 140 | error = -EACCES; |
141 | if (*res == '/') | 141 | if (*res == '/') |
142 | *name = res + 1; | 142 | *name = res + 1; |
143 | } | 143 | } |