diff --git a/fs/9p/fid.c b/fs/9p/fid.c index de009a33e0e2..b7016e148f48 100644 --- a/fs/9p/fid.c +++ b/fs/9p/fid.c @@ -13,6 +13,7 @@ #include #include #include +#include #include "v9fs.h" #include "v9fs_vfs.h" @@ -95,6 +96,7 @@ void v9fs_open_fid_add(struct inode *inode, struct p9_fid **pfid) struct p9_fid *fid = *pfid; spin_lock(&inode->i_lock); + fget(fid->fid); hlist_add_head(&fid->ilist, (struct hlist_head *)&inode->i_private); spin_unlock(&inode->i_lock);