mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
d769b3c2ab
commit
5a9a43646c
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ out:
|
||||||
return nd->intent.open.file;
|
return nd->intent.open.file;
|
||||||
out_err:
|
out_err:
|
||||||
release_open_intent(nd);
|
release_open_intent(nd);
|
||||||
nd->intent.open.file = (struct file *)dentry;
|
nd->intent.open.file = ERR_CAST(dentry);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(lookup_instantiate_filp);
|
EXPORT_SYMBOL_GPL(lookup_instantiate_filp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue