Commit 5a9a4364 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Al Viro

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: default avatarKonstantin Khlebnikov <>
Signed-off-by: default avatarAl Viro <>
parent d769b3c2
......@@ -793,7 +793,7 @@ out:
return nd->;
nd-> = (struct file *)dentry;
nd-> = ERR_CAST(dentry);
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment