SUNRPC,RPCSEC_GSS: remove unnecessary kmalloc of a checksum
authorJ. Bruce Fields <bfields@fieldses.org>
Tue, 21 Mar 2006 04:23:11 +0000 (23:23 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 Mar 2006 04:23:11 +0000 (23:23 -0500)
commit9e57b302cf0f27063184196def620f39ca7a5fc6
tree3b154f314dfad8c4350af10b87ab7f4759df3f6d
parent7a1218a277c45cba1fb8d7089407a1769c645c43
SUNRPC,RPCSEC_GSS: remove unnecessary kmalloc of a checksum

Remove unnecessary kmalloc of temporary space to hold the md5 result; it's
small enough to just put on the stack.

This code may be called to process rpc's necessary to perform writes, so
there's a potential deadlock whenever we kmalloc() here.  After this a
couple kmalloc()'s still remain, to be removed soon.

This also fixes a rare double-free on error noticed by coverity.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/auth_gss/gss_krb5_seal.c
net/sunrpc/auth_gss/gss_krb5_unseal.c
net/sunrpc/auth_gss/gss_krb5_wrap.c
net/sunrpc/auth_gss/gss_spkm3_seal.c
net/sunrpc/auth_gss/gss_spkm3_unseal.c