diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 4e90217003e8..d339a0488f51 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1153,8 +1153,9 @@ clear_hash_noput: | |||
1153 | } | 1153 | } |
1154 | EXPORT_SYMBOL(tcp_v4_md5_hash_skb); | 1154 | EXPORT_SYMBOL(tcp_v4_md5_hash_skb); |
1155 | 1155 | ||
1156 | static bool __tcp_v4_inbound_md5_hash(struct sock *sk, | 1156 | /* Called with rcu_read_lock() */ |
1157 | const struct sk_buff *skb) | 1157 | static bool tcp_v4_inbound_md5_hash(struct sock *sk, |
1158 | const struct sk_buff *skb) | ||
1158 | { | 1159 | { |
1159 | /* | 1160 | /* |
1160 | * This gets called for each TCP segment that arrives | 1161 | * This gets called for each TCP segment that arrives |
@@ -1206,18 +1207,6 @@ static bool __tcp_v4_inbound_md5_hash(struct sock *sk, | |||
1206 | } | 1207 | } |
1207 | return false; | 1208 | return false; |
1208 | } | 1209 | } |
1209 | |||
1210 | static bool tcp_v4_inbound_md5_hash(struct sock *sk, const struct sk_buff *skb) | ||
1211 | { | ||
1212 | bool ret; | ||
1213 | |||
1214 | rcu_read_lock(); | ||
1215 | ret = __tcp_v4_inbound_md5_hash(sk, skb); | ||
1216 | rcu_read_unlock(); | ||
1217 | |||
1218 | return ret; | ||
1219 | } | ||
1220 | |||
1221 | #endif | 1210 | #endif |
1222 | 1211 | ||
1223 | static void tcp_v4_init_req(struct request_sock *req, struct sock *sk_listener, | 1212 | static void tcp_v4_init_req(struct request_sock *req, struct sock *sk_listener, |