From 23fa18eaa71266feff7ba8d83022d9e1cc83c65a Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:42:03 +0000 Subject: [PATCH] disable pwm7 --- kernel/net/sctp/diag.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/kernel/net/sctp/diag.c b/kernel/net/sctp/diag.c index 68ff82f..07d0ada 100644 --- a/kernel/net/sctp/diag.c +++ b/kernel/net/sctp/diag.c @@ -349,11 +349,9 @@ struct sctp_comm_param *commp = p; struct sock *sk = ep->base.sk; const struct inet_diag_req_v2 *r = commp->r; - struct sctp_association *assoc = - list_entry(ep->asocs.next, struct sctp_association, asocs); /* find the ep only once through the transports by this condition */ - if (tsp->asoc != assoc) + if (!list_is_first(&tsp->asoc->asocs, &ep->asocs)) return 0; if (r->sdiag_family != AF_UNSPEC && sk->sk_family != r->sdiag_family) -- Gitblit v1.6.2