Skip to content

Commit a01512d

Browse files
Dave Watsondavem330
authored andcommitted
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>
1 parent f1ff866 commit a01512d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/strparser/strparser.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,6 @@ static void do_strp_rx_work(struct strparser *strp)
390390
*/
391391
lock_sock(csk);
392392

393-
if (unlikely(csk->sk_user_data != strp))
394-
goto out;
395-
396393
if (unlikely(strp->rx_stopped))
397394
goto out;
398395

0 commit comments

Comments
 (0)