summaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@openvz.org>2011-07-17 13:35:12 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-23 01:42:13 +0200
commit5a9a43646cf709312d71eca71cef90ad802f28f9 (patch)
tree9083e5e4e5bb2e8ad3f3f039503e37629acb5ddc /fs/open.c
parentisofs: Remove global fs lock (diff)
downloadlinux-5a9a43646cf709312d71eca71cef90ad802f28f9.tar.xz
linux-5a9a43646cf709312d71eca71cef90ad802f28f9.zip
vfs: use ERR_CAST for err-ptr tossing in lookup_instantiate_filp
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>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index b52cf013ffa1..739b751aa73e 100644
--- 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);