diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-12-08 13:13:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-18 13:43:32 -0800 |
commit | d3854d8c3d27532a6c0fa988c3c6679c47e89ea5 (patch) | |
tree | 3c0311d6555f6ce85507c1600abdb9548e9cb48f /net | |
parent | c80c320eb1a88f22001e2083aa2472e0fa7c7f11 (diff) | |
download | kernel-common-d3854d8c3d27532a6c0fa988c3c6679c47e89ea5.tar.gz kernel-common-d3854d8c3d27532a6c0fa988c3c6679c47e89ea5.tar.bz2 kernel-common-d3854d8c3d27532a6c0fa988c3c6679c47e89ea5.zip |
SUNRPC: IS_ERR/PTR_ERR confusion
commit 480e3243df156e39eea6c91057e2ae612a6bbe19 upstream.
IS_ERR returns 1 or 0, PTR_ERR returns the error value.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 66d458fc6920..836c50e3beed 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -485,7 +485,7 @@ gss_refresh_upcall(struct rpc_task *task) dprintk("RPC: %5u gss_refresh_upcall for uid %u\n", task->tk_pid, cred->cr_uid); gss_msg = gss_setup_upcall(task->tk_client, gss_auth, cred); - if (IS_ERR(gss_msg) == -EAGAIN) { + if (PTR_ERR(gss_msg) == -EAGAIN) { /* XXX: warning on the first, under the assumption we * shouldn't normally hit this case on a refresh. */ warn_gssd(); |