Re: [PATCH] x86/microcode/amd: fix uninitalized structure cp

Borislav Petkov
2020-01-15T12:42:59Z

On Wed, Jan 15, 2020 at 07:25:07AM +0300, Dan Carpenter wrote:
> It's probably complaining that cp.name[] isn't initialized.

That is possible.

> UBSan will probably generate a warning at runtime when we do:
>
> *ret = cp;
>
> But otherwise it's harmless.

Yes, because we don't do anything with cpio_data.name.

--
Regards/Gruss,
Boris.