mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
new helper: memcpy_from_msg()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
227158db16
commit
6ce8e9ce59
36 changed files with 57 additions and 57 deletions
|
|
@ -298,9 +298,9 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock,
|
|||
len = min_t(unsigned long, len,
|
||||
PAGE_SIZE - sg->offset - sg->length);
|
||||
|
||||
err = memcpy_fromiovec(page_address(sg_page(sg)) +
|
||||
sg->offset + sg->length,
|
||||
msg->msg_iov, len);
|
||||
err = memcpy_from_msg(page_address(sg_page(sg)) +
|
||||
sg->offset + sg->length,
|
||||
msg, len);
|
||||
if (err)
|
||||
goto unlock;
|
||||
|
||||
|
|
@ -337,8 +337,8 @@ static int skcipher_sendmsg(struct kiocb *unused, struct socket *sock,
|
|||
if (!sg_page(sg + i))
|
||||
goto unlock;
|
||||
|
||||
err = memcpy_fromiovec(page_address(sg_page(sg + i)),
|
||||
msg->msg_iov, plen);
|
||||
err = memcpy_from_msg(page_address(sg_page(sg + i)),
|
||||
msg, plen);
|
||||
if (err) {
|
||||
__free_page(sg_page(sg + i));
|
||||
sg_assign_page(sg + i, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue