forked from Minki/linux
staging: comedi: ni_tiocmd: change mistaken use of start_src for start_arg
This fixes a bug in function ni_tio_input_inttrig(). The trigger number
should be compared to cmd->start_arg, not cmd->start_src.
Fixes: 6a760394d7
("staging: comedi: ni_tiocmd: clarify the cmd->start_arg validation and use")
Cc: <stable@vger.kernel.org> # 3.17+
Signed-off-by: Spencer E. Olson <olsonse@umich.edu>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d463130122
commit
1fd24a4702
@ -92,7 +92,7 @@ static int ni_tio_input_inttrig(struct comedi_device *dev,
|
||||
unsigned long flags;
|
||||
int ret = 0;
|
||||
|
||||
if (trig_num != cmd->start_src)
|
||||
if (trig_num != cmd->start_arg)
|
||||
return -EINVAL;
|
||||
|
||||
spin_lock_irqsave(&counter->lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user