projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c154949
)
9p: Correct fidpool creation failure in p9_client_create
author
Josef 'Jeff' Sipek
<jeffpc@josefsipek.net>
Fri, 7 Mar 2008 17:40:33 +0000
(11:40 -0600)
committer
Eric Van Hensbergen
<ericvh@opteron.9grid.us>
Thu, 15 May 2008 00:23:26 +0000
(19:23 -0500)
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>
net/9p/client.c
patch
|
blob
|
history
diff --git
a/net/9p/client.c
b/net/9p/client.c
index 553c34e9f296c415e6d20c8e7273dc2c59ecd804..2ffe40cf2f01799634c478443284b80f62c9289c 100644
(file)
--- a/
net/9p/client.c
+++ b/
net/9p/client.c
@@
-154,7
+154,7
@@
struct p9_client *p9_client_create(const char *dev_name, char *options)
spin_lock_init(&clnt->lock);
INIT_LIST_HEAD(&clnt->fidlist);
clnt->fidpool = p9_idpool_create();
- if (
!clnt->fidpool
) {
+ if (
IS_ERR(clnt->fidpool)
) {
err = PTR_ERR(clnt->fidpool);
clnt->fidpool = NULL;
goto error;