Commit 728fc4ef authored by Josef 'Jeff' Sipek's avatar Josef 'Jeff' Sipek Committed by Eric Van Hensbergen
Browse files

9p: Correct fidpool creation failure in p9_client_create

On error, p9_idpool_create returns an ERR_PTR-encoded errno.
Signed-off-by: default avatarJosef 'Jeff' Sipek <>
Acked-by: default avatarEric Van Hensbergen <>
parent c1549497
......@@ -154,7 +154,7 @@ struct p9_client *p9_client_create(const char *dev_name, char *options)
clnt->fidpool = p9_idpool_create();
if (!clnt->fidpool) {
if (IS_ERR(clnt->fidpool)) {
err = PTR_ERR(clnt->fidpool);
clnt->fidpool = NULL;
goto error;
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