[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 08/11] x86/ucode/amd: Rename bufsize to size in cpu_request_microcode()
On 31/03/2020 15:41, Jan Beulich wrote: > On 31.03.2020 12:05, Andrew Cooper wrote: >> To simplify future cleanup, rename this variable. >> >> No functional change. >> >> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > Acked-by: Jan Beulich <jbeulich@xxxxxxxx> > >> @@ -438,7 +437,7 @@ static struct microcode_patch >> *cpu_request_microcode(const void *buf, >> unsigned int cpu = smp_processor_id(); >> const struct cpu_signature *sig = &per_cpu(cpu_sig, cpu); >> >> - if ( bufsize < 4 || >> + if ( size < 4 || >> *(const uint32_t *)buf != UCODE_MAGIC ) > Take the opportunity and put this on a single line? I have actually done that in a later patch. This was introduced in patch 1, so I'll fix there and rebase it throughout the series. ~Andrew
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |