diff options
author | Rémi Denis-Courmont <remi.denis-courmont@nokia.com> | 2010-08-30 08:57:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-31 16:04:32 -0400 |
commit | 02ac3268a581639af241c254579160909373e12c (patch) | |
tree | be8e77ef43845fa6b0e7e6372cb1939385bb6ba2 /net/phonet | |
parent | 1a98214feef2221cd7c24b17cd688a5a9d85b2ea (diff) |
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 'net/phonet')
-rw-r--r-- | net/phonet/pep.c | 2 |
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, | |||
876 | skb = sock_alloc_send_skb(sk, MAX_PNPIPE_HEADER + len, | 876 | skb = sock_alloc_send_skb(sk, MAX_PNPIPE_HEADER + len, |
877 | flags & MSG_DONTWAIT, &err); | 877 | flags & MSG_DONTWAIT, &err); |
878 | if (!skb) | 878 | if (!skb) |
879 | return -ENOBUFS; | 879 | return err; |
880 | 880 | ||
881 | skb_reserve(skb, MAX_PHONET_HEADER + 3); | 881 | skb_reserve(skb, MAX_PHONET_HEADER + 3); |
882 | err = memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len); | 882 | err = memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len); |