aboutsummaryrefslogtreecommitdiff
path: root/net/sched/cls_tcindex.c
diff options
context:
space:
mode:
authorGravatar Pietro Borrello <borrello@diag.uniroma1.it> 2023-02-09 12:13:05 +0000
committerGravatar Jakub Kicinski <kuba@kernel.org> 2023-02-10 19:28:29 -0800
commita1221703a0f75a9d81748c516457e0fc76951496 (patch)
tree0a43912ebc07c08f50cfbdf46e3c21d5aa4bc266 /net/sched/cls_tcindex.c
parentnet: ethernet: ti: am65-cpsw: Add RX DMA Channel Teardown Quirk (diff)
downloadlinux-a1221703a0f75a9d81748c516457e0fc76951496.tar.gz
linux-a1221703a0f75a9d81748c516457e0fc76951496.tar.bz2
linux-a1221703a0f75a9d81748c516457e0fc76951496.zip
sctp: sctp_sock_filter(): avoid list_entry() on possibly empty list
Use list_is_first() to check whether tsp->asoc matches the first element of ep->asocs, as the list is not guaranteed to have an entry. Fixes: 8f840e47f190 ("sctp: add the sctp_diag.c file") Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it> Acked-by: Xin Long <lucien.xin@gmail.com> Link: https://lore.kernel.org/r/20230208-sctp-filter-v2-1-6e1f4017f326@diag.uniroma1.it Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/cls_tcindex.c')
0 files changed, 0 insertions, 0 deletions