From: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
To: Stefan Berger <stefanb@linux.vnet.ibm.com>
Cc: tpmdd-devel@lists.sourceforge.net,
jarkko.sakkinen@linux.intel.com,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
linux-api@vger.kernel.org
Subject: Re: [PATCH v10 4/5] tpm: Initialize TPM and get durations and timeouts
Date: Fri, 15 Apr 2016 11:18:46 -0600 [thread overview]
Message-ID: <20160415171846.GB21359@obsidianresearch.com> (raw)
In-Reply-To: <1460728216-19563-5-git-send-email-stefanb@linux.vnet.ibm.com>
On Fri, Apr 15, 2016 at 09:50:15AM -0400, Stefan Berger wrote:
> @@ -69,12 +73,19 @@ static ssize_t vtpm_proxy_fops_read(struct file *filp, char __user *buf,
> size_t len;
> int sig, rc;
>
> - sig = wait_event_interruptible(proxy_dev->wq, proxy_dev->req_len != 0);
> + sig = wait_event_interruptible(proxy_dev->wq,
> + proxy_dev->req_len != 0 ||
> + !(proxy_dev->state & STATE_OPENED_FLAG));
> if (sig)
> return -EINTR;
This hunk and related doesn't look like it belongs in this patch?
Suggest just merging this into the prior patch and be done with it, not
really any reason to have two patches anymore.
I think everything that was brought up is taken care of now..
One last read through..
> static int vtpm_proxy_tpm_op_recv(struct tpm_chip *chip, u8 *buf, size_t count)
> {
> struct proxy_dev *proxy_dev = dev_get_drvdata(&chip->dev);
> if (!proxy_dev)
> return -EIO;
Is that actually possible? It shouldn't be. If not please drop it an
related.
For both:
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Jason
next prev parent reply other threads:[~2016-04-15 17:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1460728216-19563-1-git-send-email-stefanb@linux.vnet.ibm.com>
[not found] ` <1460728216-19563-1-git-send-email-stefanb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-04-15 13:50 ` [PATCH v10 3/5] tpm: Proxy driver for supporting multiple emulated TPMs Stefan Berger
2016-04-15 13:50 ` [PATCH v10 4/5] tpm: Initialize TPM and get durations and timeouts Stefan Berger
2016-04-15 17:18 ` Jason Gunthorpe [this message]
2016-04-15 13:50 ` [PATCH v10 5/5] tpm: Add documentation for the tpm_vtpm_proxy device driver Stefan Berger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160415171846.GB21359@obsidianresearch.com \
--to=jgunthorpe@obsidianresearch.com \
--cc=jarkko.sakkinen@linux.intel.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=stefanb@linux.vnet.ibm.com \
--cc=tpmdd-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).