From: Eric Dumazet Date: Thu, 12 Mar 2015 23:44:08 +0000 (-0700) Subject: inet: prepare sock_edemux() & sock_gen_put() for new SYN_RECV state X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~254^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41b822c59e21414d829bcfd00df0c8f7f13b1b95;p=pandora-kernel.git inet: prepare sock_edemux() & sock_gen_put() for new SYN_RECV state sock_edemux() & sock_gen_put() should be ready to cope with request socks. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/include/net/request_sock.h b/include/net/request_sock.h index e255ecf8bb40..3275cf31f731 100644 --- a/include/net/request_sock.h +++ b/include/net/request_sock.h @@ -77,6 +77,11 @@ static inline struct request_sock *reqsk_alloc(const struct request_sock_ops *op return req; } +static inline struct request_sock *inet_reqsk(struct sock *sk) +{ + return (struct request_sock *)sk; +} + static inline void __reqsk_free(struct request_sock *req) { kmem_cache_free(req->rsk_ops->slab, req); Reading git-diff-tree failed