Commit fbb4b00
committed
soc: apple: rtkit: Use scope-based cleanup in apple_rtkit_crashlog_rx()
Use scope-based cleanup for the crashlog buffer to simplify the function
and avoid problems like the one fixed in commit 1fb9f14458c0 ("soc:
apple: rtkit: Fix use-after-free in apple_rtkit_crashlog_rx()").
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 49bddd2 commit fbb4b00
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
| |||
0 commit comments