Re: [tpmdd-devel] [PATCH] tpm, tpm_crb: fix control area resource mapping

From: Jarkko Sakkinen
Date: Fri Jan 29 2016 - 17:21:15 EST


On Fri, Jan 29, 2016 at 01:48:27PM -0700, Jason Gunthorpe wrote:
> On Thu, Jan 28, 2016 at 11:13:59PM -0800, Jarkko Sakkinen wrote:
>
> > - struct resource tmp = {};
> > -
> > - tmp.start = start;
> > - tmp.end = start + size - 1;
> > - tmp.flags = IORESOURCE_MEM;
> > + struct resource new_res = {
> > + .start = start,
> > + .end = size - 1,
>
> That isn't right.

Whoops. Good catch, I'll update it before pull request. Thanks!

> Jason

/Jarkko