acrn-kernel/net/sctp
Dan Carpenter dcfd75bca8 sctp: handle invalid error codes without calling BUG()
[ Upstream commit a0067dfcd9 ]

The sctp_sf_eat_auth() function is supposed to return enum sctp_disposition
values but if the call to sctp_ulpevent_make_authkey() fails, it returns
-ENOMEM.

This results in calling BUG() inside the sctp_side_effects() function.
Calling BUG() is an over reaction and not helpful.  Call WARN_ON_ONCE()
instead.

This code predates git.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:25 +02:00
..
Kconfig
Makefile
associola.c
auth.c
bind_addr.c
chunk.c
debug.c
diag.c sctp: sctp_sock_filter(): avoid list_entry() on possibly empty list 2023-02-22 12:59:51 +01:00
endpointola.c
input.c
inqueue.c
ipv6.c
objcnt.c
offload.c
output.c
outqueue.c
primitive.c
proc.c
protocol.c
sm_make_chunk.c
sm_sideeffect.c sctp: handle invalid error codes without calling BUG() 2023-09-13 09:42:25 +02:00
sm_statefuns.c sctp: fix an error code in sctp_sf_eat_auth() 2023-06-21 16:01:00 +02:00
sm_statetable.c
socket.c ipv4: fix data-races around inet->inet_id 2023-08-30 16:11:02 +02:00
stream.c
stream_interleave.c sctp: fix a potential overflow in sctp_ifwdtsn_skip 2023-04-20 12:35:09 +02:00
stream_sched.c
stream_sched_prio.c sctp: add a refcnt in sctp_stream_priorities to avoid a nested loop 2023-03-11 13:55:26 +01:00
stream_sched_rr.c
sysctl.c
transport.c sctp: fix an issue that plpmtu can never go to complete state 2023-05-30 14:03:32 +01:00
tsnmap.c
ulpevent.c
ulpqueue.c