mirror of https://gitee.com/openkylin/linux.git
fs/9p: Fix error reported by coccicheck
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
This commit is contained in:
parent
df5d8c80f1
commit
936bb2d703
|
@ -811,7 +811,7 @@ v9fs_vfs_follow_link_dotl(struct dentry *dentry, struct nameidata *nd)
|
|||
fid = v9fs_fid_lookup(dentry);
|
||||
if (IS_ERR(fid)) {
|
||||
__putname(link);
|
||||
link = ERR_PTR(PTR_ERR(fid));
|
||||
link = ERR_CAST(fid);
|
||||
goto ndset;
|
||||
}
|
||||
retval = p9_client_readlink(fid, &target);
|
||||
|
|
Loading…
Reference in New Issue