mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
SUNRPC: IS_ERR/PTR_ERR confusion
commit 480e3243df 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>
This commit is contained in:
parent
037b7867ec
commit
b9058d4608
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user