浏览代码

nfsd4: don't leave freed stateid hashed

Note the stateid is hashed early on in init_stid(), but isn't currently
being unhashed on error paths.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
J. Bruce Fields 13 年之前
父节点
当前提交
24ffb93872
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/nfsd/nfs4state.c

+ 1 - 0
fs/nfsd/nfs4state.c

@@ -2983,6 +2983,7 @@ out:
 	}
 	return;
 out_free:
+	unhash_stid(&dp->dl_stid);
 	nfs4_put_delegation(dp);
 out_no_deleg:
 	flag = NFS4_OPEN_DELEGATE_NONE;