Skip to content

Commit

Permalink
spkm3: remove bad kfree, unnecessary export
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields - unquoted authored and Trond Myklebust committed May 2, 2007
1 parent f32824d commit b80e183
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/sunrpc/auth_gss/gss_spkm3_seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -184,5 +181,3 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header,

return err ? GSS_S_FAILURE : 0;
}

EXPORT_SYMBOL(make_spkm3_checksum);

0 comments on commit b80e183

Please sign in to comment.