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

Kani, Toshi
2022-07-20T16:18:47Z

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