Commit 5a9a43646cf709312d71eca71cef90ad802f28f9

Authored by Konstantin Khlebnikov
Committed by Al Viro
1 parent d769b3c2ab

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -793,7 +793,7 @@
793 793 return nd->intent.open.file;
794 794 out_err:
795 795 release_open_intent(nd);
796   - nd->intent.open.file = (struct file *)dentry;
  796 + nd->intent.open.file = ERR_CAST(dentry);
797 797 goto out;
798 798 }
799 799 EXPORT_SYMBOL_GPL(lookup_instantiate_filp);