summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorRandy Dunlap2012-09-10 18:13:07 +0200
committerDavid S. Miller2012-09-10 22:44:45 +0200
commit1c463e57b32e3b6a3250fe75d1d56cb598d664e6 (patch)
treec22fd9178c405a81883295367f8dfc961e898abf /net/core
parentixp4xx_hss: fix build failure due to missing linux/module.h inclusion (diff)
downloadkernel-qcow2-linux-1c463e57b32e3b6a3250fe75d1d56cb598d664e6.tar.gz
kernel-qcow2-linux-1c463e57b32e3b6a3250fe75d1d56cb598d664e6.tar.xz
kernel-qcow2-linux-1c463e57b32e3b6a3250fe75d1d56cb598d664e6.zip
net: fix net/core/sock.c build error
Fix net/core/sock.c build error when CONFIG_INET is not enabled: net/built-in.o: In function `sock_edemux': (.text+0xd396): undefined reference to `inet_twsk_put' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/sock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 7f64467535d1..305792076121 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -1525,9 +1525,11 @@ void sock_edemux(struct sk_buff *skb)
{
struct sock *sk = skb->sk;
+#ifdef CONFIG_INET
if (sk->sk_state == TCP_TIME_WAIT)
inet_twsk_put(inet_twsk(sk));
else
+#endif
sock_put(sk);
}
EXPORT_SYMBOL(sock_edemux);