projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6787341
)
ovl: fix readdir error value
author
Miklos Szeredi
<mszeredi@redhat.com>
Thu, 27 Jul 2017 19:54:06 +0000
(21:54 +0200)
committer
Miklos Szeredi
<mszeredi@redhat.com>
Thu, 27 Jul 2017 19:54:06 +0000
(21:54 +0200)
actor's return value is taken as a bool (filled/not filled) so we need to
return the error in the context.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/readdir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/overlayfs/readdir.c
b/fs/overlayfs/readdir.c
index 3d424a51cabbf7f1739f154c4d8a7b5616262029..a6cd7b204412a9109b38218ba66a7a4fa342eb8d 100644
(file)
--- a/
fs/overlayfs/readdir.c
+++ b/
fs/overlayfs/readdir.c
@@
-131,8
+131,10
@@
static int ovl_cache_entry_add_rb(struct ovl_readdir_data *rdd,
}
p = ovl_cache_entry_new(rdd, name, len, ino, d_type);
- if (p == NULL)
+ if (p == NULL) {
+ rdd->err = -ENOMEM;
return -ENOMEM;
+ }
list_add_tail(&p->l_node, rdd->list);
rb_link_node(&p->node, parent, newp);