Commit 43cb1cc
committed
soc: apple: rtkit: Pass 0 as size for a NULL crashlog buffer
The crashlog size is not useful for the crashed() callback callee if the
passed buffer is NULL. To reduce the risk of NULL pointer derefences in
callees use size 0 in this case.
Signed-off-by: Janne Grunau <j@jannau.net>1 parent fbb4b00 commit 43cb1cc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
398 | | - | |
| 398 | + | |
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| |||
0 commit comments