Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c463e57 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller
Browse files

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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b836ddd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);