projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d769b3c
)
vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filp
author
Konstantin Khlebnikov
<khlebnikov@openvz.org>
Sun, 17 Jul 2011 11:35:12 +0000
(15:35 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 22 Jul 2011 23:42:13 +0000
(19:42 -0400)
Replace unclear (struct dentry *) to (struct file *) typecast with ERR_CAST() macro.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/open.c
b/fs/open.c
index b52cf013ffa145de32e5c641aba7a3625de8cc29..739b751aa73eae6a6c0afe2399d9e528fdfecd7b 100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-793,7
+793,7
@@
out:
return nd->intent.open.file;
out_err:
release_open_intent(nd);
- nd->intent.open.file =
(struct file *)dentry
;
+ nd->intent.open.file =
ERR_CAST(dentry)
;
goto out;
}
EXPORT_SYMBOL_GPL(lookup_instantiate_filp);