diff mbox series

[PATCH-for-4.1] crypto: Fix data type for len parameter in two typedefs

Message ID 20190718195123.13064-1-sw@weilnetz.de
State New
Headers show
Series [PATCH-for-4.1] crypto: Fix data type for len parameter in two typedefs | expand

Commit Message

Stefan Weil July 18, 2019, 7:51 p.m. UTC
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 crypto/hash-nettle.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Carlo Arenas July 19, 2019, 12:27 a.m. UTC | #1
this series seems to provide a more complete fix

https://patchwork.ozlabs.org/cover/1131259/
Daniel P. Berrangé July 19, 2019, 4:25 p.m. UTC | #2
On Thu, Jul 18, 2019 at 09:51:23PM +0200, Stefan Weil wrote:
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  crypto/hash-nettle.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

FYI, A different fix for this problem is now merged.


Regards,
Daniel
diff mbox series

Patch

diff --git a/crypto/hash-nettle.c b/crypto/hash-nettle.c
index 96f186f442..074cece468 100644
--- a/crypto/hash-nettle.c
+++ b/crypto/hash-nettle.c
@@ -28,10 +28,10 @@ 
 
 typedef void (*qcrypto_nettle_init)(void *ctx);
 typedef void (*qcrypto_nettle_write)(void *ctx,
-                                     unsigned int len,
+                                     size_t len,
                                      const uint8_t *buf);
 typedef void (*qcrypto_nettle_result)(void *ctx,
-                                      unsigned int len,
+                                      size_t len,
                                       uint8_t *buf);
 
 union qcrypto_hash_ctx {