Commit a01512db authored by Dave Watson's avatar Dave Watson Committed by David S. Miller

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: default avatarDave Watson <davejwatson@fb.com>
Acked-by: default avatarTom Herbert <tom@herbertland.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1ff8666
...@@ -390,9 +390,6 @@ static void do_strp_rx_work(struct strparser *strp) ...@@ -390,9 +390,6 @@ static void do_strp_rx_work(struct strparser *strp)
*/ */
lock_sock(csk); lock_sock(csk);
if (unlikely(csk->sk_user_data != strp))
goto out;
if (unlikely(strp->rx_stopped)) if (unlikely(strp->rx_stopped))
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment