projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a98214
)
Phonet: correct sendmsg() error code from sock_alloc_send_skb()
author
Rémi Denis-Courmont
<remi.denis-courmont@nokia.com>
Mon, 30 Aug 2010 12:57:04 +0000
(12:57 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 31 Aug 2010 20:04:32 +0000
(13:04 -0700)
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep.c
patch
|
blob
|
blame
|
history
diff --git
a/net/phonet/pep.c
b/net/phonet/pep.c
index 5034f0f62bdb7e3ae8e20227975e5986c14e6270..04e34196c9defa6fe66c3581beb47b1cde185b6a 100644
(file)
--- a/
net/phonet/pep.c
+++ b/
net/phonet/pep.c
@@
-876,7
+876,7
@@
static int pep_sendmsg(struct kiocb *iocb, struct sock *sk,
skb = sock_alloc_send_skb(sk, MAX_PNPIPE_HEADER + len,
flags & MSG_DONTWAIT, &err);
if (!skb)
- return
-ENOBUFS
;
+ return
err
;
skb_reserve(skb, MAX_PHONET_HEADER + 3);
err = memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len);