projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a87bc2
)
tls: Use kzalloc for aead_request allocation
author
Ilya Lesokhin
<ilyal@mellanox.com>
Mon, 13 Nov 2017 08:22:44 +0000
(10:22 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 14 Nov 2017 07:26:34 +0000
(16:26 +0900)
Use kzalloc for aead_request allocation as
we don't set all the bits in the request.
Fixes: 3c4d7559159b ('tls: kernel TLS support')
Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c
patch
|
blob
|
history
diff --git
a/net/tls/tls_sw.c
b/net/tls/tls_sw.c
index 7d80040a37b6d54901c05964a2f8a9ab0851a2cb..f00383a37622051f3a9cfc63e28f7f4b6644a757 100644
(file)
--- a/
net/tls/tls_sw.c
+++ b/
net/tls/tls_sw.c
@@
-219,7
+219,7
@@
static int tls_do_encryption(struct tls_context *tls_ctx,
struct aead_request *aead_req;
int rc;
- aead_req = k
m
alloc(req_size, flags);
+ aead_req = k
z
alloc(req_size, flags);
if (!aead_req)
return -ENOMEM;