diff options
author | Dave Watson <davejwatson@fb.com> | 2016-08-22 15:27:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-23 01:43:16 -0400 |
commit | a01512dbe3ec1e7dc58b00161d61ead359f5ac08 (patch) | |
tree | e67a875f3f1c314d822dd80d49888b81da1f5ad2 | |
parent | f1ff8666ed87b0013e45ce2d335085407bb38a60 (diff) |
net: strparser: fix strparser sk_user_data check
sk_user_data mismatch between what kcm expects (psock) and what strparser expects (strparser).
Queued rx_work, for example calling strp_check_rcv after socket buffer changes, will never complete.
sk_user_data is unused in strparser, so just remove the check.
Signed-off-by: Dave Watson <davejwatson@fb.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/strparser/strparser.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/strparser/strparser.c b/net/strparser/strparser.c index fd688c0a7744..68334b56db1e 100644 --- a/net/strparser/strparser.c +++ b/net/strparser/strparser.c | |||
@@ -390,9 +390,6 @@ static void do_strp_rx_work(struct strparser *strp) | |||
390 | */ | 390 | */ |
391 | lock_sock(csk); | 391 | lock_sock(csk); |
392 | 392 | ||
393 | if (unlikely(csk->sk_user_data != strp)) | ||
394 | goto out; | ||
395 | |||
396 | if (unlikely(strp->rx_stopped)) | 393 | if (unlikely(strp->rx_stopped)) |
397 | goto out; | 394 | goto out; |
398 | 395 | ||