Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Thu, Nov 15, 2012 at 06:25:54PM +0100, Peter Huewe wrote: > Shall I resend a v2? Please do - thanks! > Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Wed, Nov 14, 2012 at 11:37:06PM +0100, Peter Hüwe wrote: > Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: > > On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote:> > > > > This patch also gets rid of the (false positive) sparse warning: > > > drivers/char/tpm/tpm.c:360

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Wed, Nov 14, 2012 at 11:37:06PM +0100, Peter Hüwe wrote: Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: This patch also gets rid of the (false positive) sparse warning: drivers/char/tpm/tpm.c:360

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Thu, Nov 15, 2012 at 06:25:54PM +0100, Peter Huewe wrote: Shall I resend a v2? Please do - thanks! Peter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-14 Thread Peter Hüwe
Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: > On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote:> > > > This patch also gets rid of the (false positive) sparse warning: > > drivers/char/tpm/tpm.c:360 tpm_calc_ordinal_duration() error: buffer > > overflow

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-14 Thread Kent Yoder
On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: > This patch changes the semantics of the duration calculation for an > ordinal, by masking out the higher bits of a tpm command, which specify > whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, > TPM_CONNECTION_COMMAND,

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-14 Thread Kent Yoder
On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: This patch changes the semantics of the duration calculation for an ordinal, by masking out the higher bits of a tpm command, which specify whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, TPM_CONNECTION_COMMAND,

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-14 Thread Peter Hüwe
Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: This patch also gets rid of the (false positive) sparse warning: drivers/char/tpm/tpm.c:360 tpm_calc_ordinal_duration() error: buffer overflow

[PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-12 Thread Peter Huewe
This patch changes the semantics of the duration calculation for an ordinal, by masking out the higher bits of a tpm command, which specify whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, TPM_CONNECTION_COMMAND, TPM_CONNECTION_COMMAND, TPM_VENDOR_COMMAND. (See TPM Main Spec Part 2

[PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-12 Thread Peter Huewe
This patch changes the semantics of the duration calculation for an ordinal, by masking out the higher bits of a tpm command, which specify whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, TPM_CONNECTION_COMMAND, TPM_CONNECTION_COMMAND, TPM_VENDOR_COMMAND. (See TPM Main Spec Part 2