Files
linux/net
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
..
2023-06-09 10:34:16 +02:00
2022-02-25 09:36:06 +01:00
2023-03-22 13:33:50 +01:00
2023-05-17 11:53:35 +02:00
2022-08-22 14:26:30 +01:00