tree 61c7cde232f4d241489fba3bd5386ceaefd223ac
parent 14869c388673e8db3348ab3706fa6485d0f0cf95
author Herbert Xu <[EMAIL PROTECTED]> Wed, 24 Aug 2005 00:09:53 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 24 Aug 2005 00:09:53 -0700

[RPC]: Kill bogus kmap in krb5

While I was going through the crypto users recently, I noticed this
bogus kmap in sunrpc.  It's totally unnecessary since the crypto
layer will do its own kmap before touching the data.  Besides, the
kmap is throwing the return value away.

Signed-off-by: Herbert Xu <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>

 net/sunrpc/auth_gss/gss_krb5_crypto.c |    2 --
 1 files changed, 2 deletions(-)

diff --git a/net/sunrpc/auth_gss/gss_krb5_crypto.c 
--- a/net/sunrpc/auth_gss/gss_krb5_crypto.c
+++ b/net/sunrpc/auth_gss/gss_krb5_crypto.c
@@ -185,9 +185,7 @@ make_checksum(s32 cksumtype, char *heade
                        sg->page = body->pages[i];
                        sg->offset = offset;
                        sg->length = thislen;
-                       kmap(sg->page); /* XXX kmap_atomic? */
                        crypto_digest_update(tfm, sg, 1);
-                       kunmap(sg->page);
                        len -= thislen;
                        offset = 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to