summaryrefslogtreecommitdiffstats
path: root/net/phonet/pep.c
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>2010-08-30 14:57:04 +0200
committerDavid S. Miller <davem@davemloft.net>2010-08-31 22:04:32 +0200
commit02ac3268a581639af241c254579160909373e12c (patch)
treebe8e77ef43845fa6b0e7e6372cb1939385bb6ba2 /net/phonet/pep.c
parentPhonet: restore flow control credits when sending fails (diff)
downloadlinux-02ac3268a581639af241c254579160909373e12c.tar.xz
linux-02ac3268a581639af241c254579160909373e12c.zip
Phonet: correct sendmsg() error code from sock_alloc_send_skb()
Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/phonet/pep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index 5034f0f62bdb..04e34196c9de 100644
--- 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);