Re: [PATCH] TPM: DATA_EXPECT bit check bypass

From: Rajiv Andrade
Date: Thu Jul 16 2009 - 16:59:19 EST


On Thu, 2009-07-16 at 16:08 -0400, Valdis.Kletnieks@xxxxxx wrote:
> On Thu, 16 Jul 2009 14:43:32 -0300, Rajiv Andrade said:
>
> > @@ -582,6 +585,12 @@ static int tpm_tis_init(struct device *dev, resource_siz
> e_t start,
> > tpm_get_timeouts(chip);
> > tpm_continue_selftest(chip);
> >
> > + for (i=0; i < 8; i++)
> > + if (ITPM_ID[i] != to_pnp_dev(dev)->id->id[i])
> > + break;
> > + if (i == 8)
> > + chip->is_itpm = 1;
> > +
>
> strcmp() variant of some sort instead?

Much better, thanks. Forgot that lib/string.c can be handy sometimes :-)

Rajiv

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/