]> err.no Git - linux-2.6/commitdiff
spkm3: remove bad kfree, unnecessary export
authorJ. Bruce Fields - unquoted <bfields@snoopy.citi.umich.edu>
Sat, 10 Feb 2007 06:33:26 +0000 (01:33 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 2 May 2007 14:36:45 +0000 (07:36 -0700)
We're kfree()'ing something that was allocated on the stack!

Also remove an unnecessary symbol export while we're at it.

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

index 36c3bae0c42b36b649200459b1cd727ba45a06ac..3ec9cd31420cb2b448f38e6223a637af6c52c27d 100644 (file)
@@ -123,9 +123,6 @@ spkm3_make_token(struct spkm3_ctx *ctx,
 
        return  GSS_S_COMPLETE;
 out_err:
-       if (md5cksum.data)
-               kfree(md5cksum.data);
-
        token->data = NULL;
        token->len = 0;
        return GSS_S_FAILURE;
@@ -184,5 +181,3 @@ out:
 
        return err ? GSS_S_FAILURE : 0;
 }
-
-EXPORT_SYMBOL(make_spkm3_checksum);