projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
new helper: msg_data_left()
[linux-2.6-block.git]
/
crypto
/
algif_hash.c
diff --git
a/crypto/algif_hash.c
b/crypto/algif_hash.c
index 0a465e0f301291f3e63b4306905f25bcffa50284..1396ad0787fc6b84ebdd9a9d552ce7eaccf1e698 100644
(file)
--- 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;