diff options
| author | Dan Carpenter <[email protected]> | 2023-06-09 11:04:43 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-06-12 08:36:27 +0000 |
| commit | a0067dfcd9418fd3b0632bc59210d120d038a9c6 (patch) | |
| tree | 4b623bd0686fac08075b288c9cb55932eb3dc493 /drivers/net/ethernet/intel/igc | |
| parent | ipvlan: fix bound dev checking for IPv6 l3s mode (diff) | |
| download | kernel-a0067dfcd9418fd3b0632bc59210d120d038a9c6.tar.gz kernel-a0067dfcd9418fd3b0632bc59210d120d038a9c6.zip | |
sctp: handle invalid error codes without calling BUG()
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
