mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
spkm3: remove bad kfree, unnecessary export
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>
This commit is contained in:
parent
f32824d8ca
commit
b80e183def
@ -123,9 +123,6 @@ spkm3_make_token(struct spkm3_ctx *ctx,
|
|||||||
|
|
||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
out_err:
|
out_err:
|
||||||
if (md5cksum.data)
|
|
||||||
kfree(md5cksum.data);
|
|
||||||
|
|
||||||
token->data = NULL;
|
token->data = NULL;
|
||||||
token->len = 0;
|
token->len = 0;
|
||||||
return GSS_S_FAILURE;
|
return GSS_S_FAILURE;
|
||||||
@ -184,5 +181,3 @@ out:
|
|||||||
|
|
||||||
return err ? GSS_S_FAILURE : 0;
|
return err ? GSS_S_FAILURE : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_SYMBOL(make_spkm3_checksum);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user