Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:
quoted text > Reviewd-by: Mimi Zohar <zohar@watson.ibm.com>
You've missed an 'e'.
quoted text > +int tpm_send(u32 chip_num, char *cmd, int buflen)
> +{
> ...
> + rc = transmit_cmd(chip, (struct tpm_cmd_t *)cmd, buflen,
> + "attempting tpm_cmd");
Make cmd 'void *' to obviate the cast. Preferably it should be const too.
quoted text > + module_put(chip->dev->driver->owner);
Where's the corresponding module_get()? I suspect this should be wrapped to
match tpm_chip_find_get().
David
--
unsubscribe notice To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Messages in current thread:
Re: [PATCH v1.3 2/4] key: add tpm_send command , David Howells , (Thu Nov 11, 12:48 pm)