forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/net/sctp/sm_sideeffect.c
....@@ -1241,7 +1241,10 @@
12411241 default:
12421242 pr_err("impossible disposition %d in state %d, event_type %d, event_id %d\n",
12431243 status, state, event_type, subtype.chunk);
1244
- BUG();
1244
+ error = status;
1245
+ if (error >= 0)
1246
+ error = -EINVAL;
1247
+ WARN_ON_ONCE(1);
12451248 break;
12461249 }
12471250