Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Re: [PATCH] xen-tpmfront: correct return value check on xenbus_scanf()
       [not found] ` <20160707103554.GA13244@intel.com>
@ 2016-07-07 10:38   ` Jarkko Sakkinen
  2016-07-07 12:00     ` Jan Beulich
  0 siblings, 1 reply; 3+ messages in thread
From: Jarkko Sakkinen @ 2016-07-07 10:38 UTC (permalink / raw)
  To: Jan Beulich
  Cc: peterhuewe, jgunthorpe, tpmdd, david.vrabel,
	tpmdd-devel@lists.sourceforge.net, xen-devel, boris.ostrovsky,
	Juergen Gross, stable

On Thu, Jul 07, 2016 at 01:35:54PM +0300, Jarkko Sakkinen wrote:
> On Thu, Jul 07, 2016 at 02:04:00AM -0600, Jan Beulich wrote:
> > Only a positive return value indicates success.
> > 
> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
> 
> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>

Applied. Should this be CC'd to stable or not?

/Jarkko

> /Jarkko
> 
> > ---
> >  drivers/char/tpm/xen-tpmfront.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > --- 4.7-rc6-xenbus_scanf.orig/drivers/char/tpm/xen-tpmfront.c
> > +++ 4.7-rc6-xenbus_scanf/drivers/char/tpm/xen-tpmfront.c
> > @@ -344,7 +344,7 @@ static void backend_changed(struct xenbu
> >  			break;
> >  
> >  		if (xenbus_scanf(XBT_NIL, dev->otherend,
> > -				"feature-protocol-v2", "%d", &val) < 0)
> > +				"feature-protocol-v2", "%d", &val) <= 0)
> >  			val = 0;
> >  		if (!val) {
> >  			xenbus_dev_fatal(dev, -EINVAL,
> > 
> > 
> > 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen-tpmfront: correct return value check on xenbus_scanf()
  2016-07-07 10:38   ` [PATCH] xen-tpmfront: correct return value check on xenbus_scanf() Jarkko Sakkinen
@ 2016-07-07 12:00     ` Jan Beulich
  2016-07-07 12:21       ` Jarkko Sakkinen
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2016-07-07 12:00 UTC (permalink / raw)
  To: Jarkko Sakkinen
  Cc: david.vrabel, peterhuewe, tpmdd-devel@lists.sourceforge.net,
	xen-devel, jgunthorpe, boris.ostrovsky, tpmdd, Juergen Gross,
	stable

>>> On 07.07.16 at 12:38, <jarkko.sakkinen@linux.intel.com> wrote:
> On Thu, Jul 07, 2016 at 01:35:54PM +0300, Jarkko Sakkinen wrote:
>> On Thu, Jul 07, 2016 at 02:04:00AM -0600, Jan Beulich wrote:
>> > Only a positive return value indicates success.
>> > 
>> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
>> 
>> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
> 
> Applied. Should this be CC'd to stable or not?

Actually the Xen code maintainers dislike this kind of change
(expressed in reply to a change elsewhere in the tree), so
maybe you want to sync with them whether to pull it back out.
In any event I don't think it needs Cc-ing to stable@.

Jan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen-tpmfront: correct return value check on xenbus_scanf()
  2016-07-07 12:00     ` Jan Beulich
@ 2016-07-07 12:21       ` Jarkko Sakkinen
  0 siblings, 0 replies; 3+ messages in thread
From: Jarkko Sakkinen @ 2016-07-07 12:21 UTC (permalink / raw)
  To: Jan Beulich
  Cc: david.vrabel, peterhuewe, tpmdd-devel@lists.sourceforge.net,
	xen-devel, jgunthorpe, boris.ostrovsky, tpmdd, Juergen Gross,
	stable

On Thu, Jul 07, 2016 at 06:00:25AM -0600, Jan Beulich wrote:
> >>> On 07.07.16 at 12:38, <jarkko.sakkinen@linux.intel.com> wrote:
> > On Thu, Jul 07, 2016 at 01:35:54PM +0300, Jarkko Sakkinen wrote:
> >> On Thu, Jul 07, 2016 at 02:04:00AM -0600, Jan Beulich wrote:
> >> > Only a positive return value indicates success.
> >> > 
> >> > Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >> 
> >> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
> > 
> > Applied. Should this be CC'd to stable or not?
> 
> Actually the Xen code maintainers dislike this kind of change
> (expressed in reply to a change elsewhere in the tree), so
> maybe you want to sync with them whether to pull it back out.
> In any event I don't think it needs Cc-ing to stable@.

OK, it's in my master branch (bleeding edge) so no harm done yet.

> Jan

/Jarkko

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-07 12:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <577E291002000078000FBF18@prv-mh.provo.novell.com>
     [not found] ` <20160707103554.GA13244@intel.com>
2016-07-07 10:38   ` [PATCH] xen-tpmfront: correct return value check on xenbus_scanf() Jarkko Sakkinen
2016-07-07 12:00     ` Jan Beulich
2016-07-07 12:21       ` Jarkko Sakkinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox