]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - crypto/algif_hash.c
Merge branches 'acpi-dock', 'acpi-ec' and 'acpi-scan'
[karo-tx-linux.git] / crypto / algif_hash.c
index 0a465e0f301291f3e63b4306905f25bcffa50284..1396ad0787fc6b84ebdd9a9d552ce7eaccf1e698 100644 (file)
@@ -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;