All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch -next] x86, microcode, AMD: signedness bug in
@ 2011-02-18  9:17 ` Dan Carpenter
  0 siblings, 0 replies; 19+ messages in thread
From: Dan Carpenter @ 2011-02-18  9:17 UTC (permalink / raw)
  To: Andreas Herrmann
  Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Borislav Petkov,
	maintainer:X86 ARCHITECTURE..., open list:AMD MICROCODE UPD...,
	open list, kernel-janitors

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

Signed-off-by: Dan Carpenter <error27@gmail.com>

diff --git a/arch/x86/kernel/microcode_amd.c b/arch/x86/kernel/microcode_amd.c
index 9fb8405..c561038 100644
--- a/arch/x86/kernel/microcode_amd.c
+++ b/arch/x86/kernel/microcode_amd.c
@@ -246,7 +246,7 @@ generic_load_microcode(int cpu, const u8 *data, size_t size)
 	struct ucode_cpu_info *uci = ucode_cpu_info + cpu;
 	struct microcode_header_amd *mc_hdr = NULL;
 	unsigned int mc_size, leftover;
-	unsigned long offset;
+	int offset;
 	const u8 *ucode_ptr = data;
 	void *new_mc = NULL;
 	unsigned int new_rev = uci->cpu_sig.rev;

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2011-02-20 19:33 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18  9:17 [patch -next] x86, microcode, AMD: signedness bug in Dan Carpenter
2011-02-18  9:17 ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Dan Carpenter
2011-02-18  9:39 ` [patch -next] x86, microcode, AMD: signedness bug in Borislav Petkov
2011-02-18  9:39   ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Borislav Petkov
2011-02-20 13:02 ` [patch -next] x86, microcode, AMD: signedness bug in Ingo Molnar
2011-02-20 13:02   ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Ingo Molnar
2011-02-20 13:09   ` [patch -next] x86, microcode, AMD: signedness bug in Dan Carpenter
2011-02-20 13:09     ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Dan Carpenter
2011-02-20 14:14   ` [patch -next] x86, microcode, AMD: signedness bug in Borislav Petkov
2011-02-20 14:14     ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Borislav Petkov
2011-02-20 17:50     ` [patch -next] x86, microcode, AMD: signedness bug in Matthew Wilcox
2011-02-20 17:50       ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Matthew Wilcox
2011-02-20 18:08       ` [patch -next] x86, microcode, AMD: signedness bug in Borislav Petkov
2011-02-20 18:08         ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Borislav Petkov
2011-02-20 18:42         ` [patch -next] x86, microcode, AMD: signedness bug in Matthew Wilcox
2011-02-20 18:42           ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Matthew Wilcox
2011-02-20 19:33           ` [patch -next] x86, microcode, AMD: signedness bug in Borislav Petkov
2011-02-20 19:33             ` [patch -next] x86, microcode, AMD: signedness bug in generic_load_microcode() Borislav Petkov
2011-02-20 13:07 ` [tip:x86/microcode] x86, microcode, AMD: Fix " tip-bot for Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.