Commit 65cd966
Fix double free issue in alterResgroupCallback during io_limit cleanup
We need to handle two scenarios:
1. When caps.io_limit differs from oldCaps.io_limit — this corresponds to
the RESGROUP_LIMIT_TYPE_IO_LIMIT case.
2. When caps.io_limit is equal to oldCaps.io_limit — this applies to
all other cases.
The original code causes a double free issue in the second scenario ("other cases").1 parent 2663671 commit 65cd966
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1096 | 1108 | | |
1097 | 1109 | | |
1098 | 1110 | | |
1099 | | - | |
| 1111 | + | |
| 1112 | + | |
1100 | 1113 | | |
1101 | 1114 | | |
1102 | 1115 | | |
| |||
0 commit comments