Commit 728fc4ef17748042d9c71144aa339ed9c68e8b01

Authored by Josef 'Jeff' Sipek
Committed by Eric Van Hensbergen
1 parent c1549497e9

9p: Correct fidpool creation failure in p9_client_create

On error, p9_idpool_create returns an ERR_PTR-encoded errno.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Acked-by: Eric Van Hensbergen <ericvh@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -154,7 +154,7 @@
154 154 spin_lock_init(&clnt->lock);
155 155 INIT_LIST_HEAD(&clnt->fidlist);
156 156 clnt->fidpool = p9_idpool_create();
157   - if (!clnt->fidpool) {
  157 + if (IS_ERR(clnt->fidpool)) {
158 158 err = PTR_ERR(clnt->fidpool);
159 159 clnt->fidpool = NULL;
160 160 goto error;