X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=crypto%2Falgif_hash.c;h=1396ad0787fc6b84ebdd9a9d552ce7eaccf1e698;hb=1ec7cfb13acb8047ae5baafb43d2cd6b64ac85b9;hp=0a465e0f301291f3e63b4306905f25bcffa50284;hpb=0fa74a4be48e0f810d3dc6ddbc9d6ac7e86cbee8;p=karo-tx-linux.git diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index 0a465e0f3012..1396ad0787fc 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -56,8 +56,8 @@ static int hash_sendmsg(struct socket *sock, struct msghdr *msg, ctx->more = 0; - while (iov_iter_count(&msg->msg_iter)) { - int len = iov_iter_count(&msg->msg_iter); + while (msg_data_left(msg)) { + int len = msg_data_left(msg); if (len > limit) len = limit;