Re: [patch -next] x86, microcode, AMD: signedness bug ingeneric_load_microcode()

From: Ingo Molnar
Date: Sun Feb 20 2011 - 08:02:32 EST



* Dan Carpenter <error27@xxxxxxxxx> wrote:

> install_equiv_cpu_table() returns type int. It uses negative error
> codes so using an unsigned type breaks the error handling.

How did you notice this btw - did GCC throw a warning?

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/