RE: [PATCH] EDAC/ghes: Fix buffer overflow in ghes_edac_register()

From: Kani, Toshi
Date: Wed Jul 20 2022 - 12:18:50 EST


Borislav Petkov wrote:
> I think it'll be more user-friendly to put
>
> "PROC 1 DIMM 1" for device
>
> and
>
> "NA" or so for bank
>
> instead of setting the label to the NULL string.
>
> I.e., relax that
>
> if (bank && *bank && device && *device)
>
> check there.

Good idea. I will send a v2 patch to set "NA" in case device or bank
is null.

Thanks,
Toshi