Commit 09b36144 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] knfsd: rpcsec_gss: comparing pointer to 0 instead of NULL

Just noticed while fixing some other sparse-related stuff.
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: default avatarNeil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 91143282
...@@ -958,7 +958,7 @@ svcauth_gss_release(struct svc_rqst *rqstp) ...@@ -958,7 +958,7 @@ svcauth_gss_release(struct svc_rqst *rqstp)
if (gc->gc_proc != RPC_GSS_PROC_DATA) if (gc->gc_proc != RPC_GSS_PROC_DATA)
goto out; goto out;
/* Release can be called twice, but we only wrap once. */ /* Release can be called twice, but we only wrap once. */
if (gsd->body_start == 0) if (gsd->body_start == NULL)
goto out; goto out;
/* normally not set till svc_send, but we need it here: */ /* normally not set till svc_send, but we need it here: */
resbuf->len = resbuf->head[0].iov_len resbuf->len = resbuf->head[0].iov_len
......
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