We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beca774 commit e5690f2Copy full SHA for e5690f2
fs/9p/vfs_inode.c
@@ -1251,15 +1251,15 @@ static const char *v9fs_vfs_get_link(struct dentry *dentry,
1251
return ERR_PTR(-ECHILD);
1252
1253
v9ses = v9fs_dentry2v9ses(dentry);
1254
- fid = v9fs_fid_lookup(dentry);
+ if (!v9fs_proto_dotu(v9ses))
1255
+ return ERR_PTR(-EBADF);
1256
+
1257
p9_debug(P9_DEBUG_VFS, "%pd\n", dentry);
1258
+ fid = v9fs_fid_lookup(dentry);
1259
1260
if (IS_ERR(fid))
1261
return ERR_CAST(fid);
1262
- if (!v9fs_proto_dotu(v9ses))
- return ERR_PTR(-EBADF);
-
1263
st = p9_client_stat(fid);
1264
p9_client_clunk(fid);
1265
if (IS_ERR(st))
0 commit comments