mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -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
|
|
@ -1549,7 +1549,7 @@ static int ax25_sendmsg(struct kiocb *iocb, struct socket *sock,
|
|||
skb_reserve(skb, size - len);
|
||||
|
||||
/* User data follows immediately after the AX.25 data */
|
||||
if (memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len)) {
|
||||
if (memcpy_from_msg(skb_put(skb, len), msg, len)) {
|
||||
err = -EFAULT;
|
||||
kfree_skb(skb);
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue