Re: [PATCH v1] rtla: Fix crash due to NULL record dereference
From: Tomas Glozar
Date: Tue Mar 25 2025 - 11:49:37 EST
so 22. 3. 2025 v 19:40 odesílatel Costa Shulyupin
<costa.shul@xxxxxxxxxx> napsal:
>
> The previous patch introduced a crash by dereferencing record,
> which can be NULL.
>
> Add checks to prevent the crash.
>
> Signed-off-by: Costa Shulyupin <costa.shul@xxxxxxxxxx>
This is a duplicate of my fix [1]. I added a NULL check inside the
function and made the callers pass NULL if the record instance is not
initialized.
[1] https://lore.kernel.org/linux-trace-kernel/20250313141034.299117-1-tglozar@xxxxxxxxxx/
Tomas