On Mon, Dec 16, 2013 at 06:55:51PM +0100, Borislav Petkov wrote: > Date: Mon, 16 Dec 2013 18:55:51 +0100 > From: Borislav Petkov <bp@xxxxxxxxx> > To: tony.luck@xxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, "Chen, Gong" > <gong.chen@xxxxxxxxxxxxxxx> > Subject: Re: [PATCH v3] ACPI, APEI: Cleanup alignment related codes for APEI > User-Agent: Mutt/1.5.21 (2010-09-15) > > On Mon, Dec 16, 2013 at 09:39:34AM -0500, Chen, Gong wrote: > > erst record id cache is implemented in the memory to increase the > > access speed via caching ERST content, so it doesn't matter with > > firmware access. > > So what's with the memcpy in __erst_record_id_cache_add_one()? > I think you mean ... memcpy(new_entries, entries, erst_record_id_cache.len * sizeof(entries[0])); ... It is a copy from one integer array to another one(from old ID array to new bigger ID array), so I can't use a simple evaluation to get this goal.
Attachment:
signature.asc
Description: Digital signature