[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] microcode fix
>>> On 13.12.11 at 15:22, Christoph Egger <Christoph.Egger@xxxxxxx> wrote: >@@ -335,17 +352,36 @@ static int microcode_resume_match(int cp > > if ( src != mc_amd ) > { >+ xfree(mc_amd->equiv_cpu_table); >+ xfree(mc_amd->mpb); mc_amd can be NULL here. > xfree(mc_amd); >- mc_amd = xmalloc_bytes(sizeof(*src) + src->equiv_cpu_table_size); >+ >+ mc_amd = xmalloc_bytes(sizeof(*src)); xmalloc(struct microcode_amd) >+ if ( !mc_amd ) >+ goto err0; The error handling is broken here. You need to clear out uci->mc.mc_amd (i.e. move up the respective assignment). Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |