From: David Safford Subject: Re: [PATCH v1.4 3/5] key: add tpm_send command Date: Fri, 19 Nov 2010 11:04:56 -0500 Message-ID: <1290182696.2597.18.camel@localhost.localdomain> References: <1290120166-3132-4-git-send-email-zohar@linux.vnet.ibm.com> <1290120166-3132-1-git-send-email-zohar@linux.vnet.ibm.com> <9837.1290181537@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Cc: Mimi Zohar , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@linux-nfs.org, linux-crypto@vger.kernel.org, Jason Gunthorpe , James Morris , Rajiv Andrade , Mimi Zohar To: David Howells Return-path: Received: from igw2.watson.ibm.com ([129.34.20.6]:33952 "EHLO igw2.watson.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752531Ab0KSQF1 convert rfc822-to-8bit (ORCPT ); Fri, 19 Nov 2010 11:05:27 -0500 In-Reply-To: <9837.1290181537@redhat.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Fri, 2010-11-19 at 15:45 +0000, David Howells wrote: > Mimi Zohar wrote: > > > +int tpm_send(u32 chip_num, void *cmd, int buflen) > > I'd recommend size_t for buflen; apart from that: > > Acked-by: David Howells right - that would be better. Currently transmit_command() in tpm.c expects an int, but it changes it to size_t for the actual tpm_transmit(). We will work with Rajiv to do a cleanup, as this touches a number of calls. thanks! dave