Re: [PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()

2017-10-24 Thread Jarkko Sakkinen
On Mon, Oct 23, 2017 at 03:57:30PM +0200, SF Markus Elfring wrote: > >> @@ -108,11 +106,14 @@ static int vtpm_send(struct tpm_chip *chip, u8 *buf, > >> size_t count) > >>if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration, > >>&priv->read_queue, true) < 0) { > >>

Re: [PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()

2017-10-23 Thread SF Markus Elfring
>> @@ -108,11 +106,14 @@ static int vtpm_send(struct tpm_chip *chip, u8 *buf, >> size_t count) >> if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration, >> &priv->read_queue, true) < 0) { >> /* got a signal or timeout, try to cancel */ >> -vtpm_c

Re: [PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()

2017-10-23 Thread Jarkko Sakkinen
On Sun, Oct 22, 2017 at 01:29:33PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 22 Oct 2017 12:56:42 +0200 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle soft

[PATCH 1/2] xen-tpmfront: Use common error handling code in vtpm_send()

2017-10-22 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 22 Oct 2017 12:56:42 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/char/tpm/xen-tpmfront.c | 13 +