summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-11-12 15:26:41 +0100
committerArnd Bergmann <arnd@arndb.de>2012-11-12 15:26:41 +0100
commitb68c50d836517cf662145b2e7d5cdf40a38b24f1 (patch)
treebcd0796a008f640d450dc1b4d27cb414f3828082 /net/ipv4/tcp_input.c
parent5bd09fb0336aa4020b85f13e16a4d21e3f5f70c3 (diff)
parent84cee34db4d34b9059f4ef66f7d1805e438cc7f3 (diff)
Merge branch 'lpc32xx/core' of git://git.antcom.de/linux-2.6 into next/soc
Patches from Roland Stigge <stigge@antcom.de>: Platform topic branch for lpc32xx * 'lpc32xx/core' of git://git.antcom.de/linux-2.6: ARM: LPC32xx: Add the motor PWM clock ARM: LPC32xx: Cleanup irq.c ARM: LPC32xx: Relocate calls to irq_set_chained_handler() ARM: LPC32xx: Remove superfluous irq_alloc_descs() Includes an update to v3.7-rc4 Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 1db66398358..2c2b13a999e 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4529,6 +4529,9 @@ int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size)
struct tcphdr *th;
bool fragstolen;
+ if (size == 0)
+ return 0;
+
skb = alloc_skb(size + sizeof(*th), sk->sk_allocation);
if (!skb)
goto err;