All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Hutchings <ben@decadent.org.uk>
To: Ian Abbott <abbotti@mev.co.uk>, stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Dan Carpenter <dan.carpenter@oracle.com>,
	H Hartley Sweeten <hsweeten@visionengravers.com>
Subject: Re: [PATCH stable 3.9 to 3.16] staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write()
Date: Wed, 02 Jan 2019 17:48:59 +0000	[thread overview]
Message-ID: <85abc221b4990ca5590e57e46ef941df0db06502.camel@decadent.org.uk> (raw)
In-Reply-To: <7f067209-86a6-e063-390e-f2d2ff0b1fca@mev.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]

On Mon, 2018-11-12 at 11:56 +0000, Ian Abbott wrote:
> On 09/11/18 23:44, Ben Hutchings wrote:
> > On Tue, 2018-07-10 at 18:02 +0100, Ian Abbott wrote:
> > > From: Dan Carpenter <dan.carpenter@oracle.com>
> > > 
> > > [ Upstream commit 1376b0a2160319125c3a2822e8c09bd283cd8141 ]
> > > 
> > > There is a '>' vs '<' typo so this loop is a no-op.
> > 
> > Thanks, but this driver seems to have lots of other bugs in 3.16, like
> > it only ever accesses data[0] in this loop.  I don't think there's much
> > point in applying just this one.  But if you think it's worth fixing
> > then I can apply all the necessary fixes.
> > 
> > Ben.
> 
> It restores some basic functionality for daqp_ao_insn_write() that was 
> broken.  The most common case to be handled is insn->n == 1, as that is 
> what the comedi_data_write() function in the user-space Comedilib 
> library sets.
> 
> However, it may be worth applying e024181b02ed ("staging: comedi: 
> quatech_daqp_cs: fix bug in daqp_ao_insn_write()") and (with a small 
> amount of backporting) e031642eccc0 ("staging: comedi: quatech_daqp_cs: 
> use comedi_timeout() in ao (*insn_write)") before this one.  I'll append 
> a patch series as replies to this email.

I've queued these up for the next update, thanks.

Ben.

-- 
Ben Hutchings
Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2019-01-02 17:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-10 17:02 [PATCH stable 3.9 to 3.16] staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write() Ian Abbott
2018-11-09 23:44 ` Ben Hutchings
2018-11-12 11:56   ` Ian Abbott
2018-11-12 12:36     ` [PATCH 1/3] staging: comedi: quatech_daqp_cs: fix bug in daqp_ao_insn_write() Ian Abbott
2018-11-12 12:36       ` [PATCH 2/3] staging: comedi: quatech_daqp_cs: use comedi_timeout() in ao (*insn_write) Ian Abbott
2018-11-12 12:36       ` [PATCH 3/3] staging: comedi: quatech_daqp_cs: fix no-op loop daqp_ao_insn_write() Ian Abbott
2019-01-02 17:48     ` Ben Hutchings [this message]

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=85abc221b4990ca5590e57e46ef941df0db06502.camel@decadent.org.uk \
    --to=ben@decadent.org.uk \
    --cc=abbotti@mev.co.uk \
    --cc=dan.carpenter@oracle.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hsweeten@visionengravers.com \
    --cc=stable@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.