Commit b5ce7a5
rust_binder: report freeze notification only when fully frozen
Binder only sends out freeze notifications when ioctl_freeze() completes
and the process has become fully frozen. However, if a freeze
notification is registered during the freeze operation, then it
registers an initial state of 'frozen'. This is a problem because if
the freeze operation fails, then the listener is not told about that
state change, leading to lost updates.
Signed-off-by: Alice Ryhl <[email protected]>
Acked-by: Carlos Llamas <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 99559e5 commit b5ce7a5
3 files changed
+42
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
75 | 102 | | |
76 | 103 | | |
77 | 104 | | |
| |||
98 | 125 | | |
99 | 126 | | |
100 | 127 | | |
101 | | - | |
| 128 | + | |
102 | 129 | | |
103 | 130 | | |
104 | 131 | | |
| |||
124 | 151 | | |
125 | 152 | | |
126 | 153 | | |
127 | | - | |
| 154 | + | |
128 | 155 | | |
129 | 156 | | |
130 | 157 | | |
| |||
1260 | 1287 | | |
1261 | 1288 | | |
1262 | 1289 | | |
1263 | | - | |
| 1290 | + | |
1264 | 1291 | | |
1265 | 1292 | | |
1266 | 1293 | | |
| |||
1367 | 1394 | | |
1368 | 1395 | | |
1369 | 1396 | | |
1370 | | - | |
| 1397 | + | |
1371 | 1398 | | |
1372 | 1399 | | |
1373 | 1400 | | |
| |||
1381 | 1408 | | |
1382 | 1409 | | |
1383 | 1410 | | |
1384 | | - | |
| 1411 | + | |
1385 | 1412 | | |
1386 | 1413 | | |
1387 | 1414 | | |
| |||
1390 | 1417 | | |
1391 | 1418 | | |
1392 | 1419 | | |
1393 | | - | |
| 1420 | + | |
1394 | 1421 | | |
1395 | 1422 | | |
1396 | 1423 | | |
| |||
1404 | 1431 | | |
1405 | 1432 | | |
1406 | 1433 | | |
1407 | | - | |
| 1434 | + | |
1408 | 1435 | | |
1409 | 1436 | | |
1410 | 1437 | | |
| |||
1418 | 1445 | | |
1419 | 1446 | | |
1420 | 1447 | | |
1421 | | - | |
| 1448 | + | |
1422 | 1449 | | |
1423 | 1450 | | |
1424 | 1451 | | |
1425 | 1452 | | |
1426 | 1453 | | |
| 1454 | + | |
1427 | 1455 | | |
1428 | 1456 | | |
1429 | 1457 | | |
1430 | 1458 | | |
1431 | | - | |
| 1459 | + | |
1432 | 1460 | | |
1433 | 1461 | | |
1434 | 1462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
0 commit comments