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

From: Borislav Petkov
Date: Wed Jan 15 2020 - 07:42:59 EST


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.

https://people.kernel.org/tglx/notes-about-netiquette