staging: comedi: ni_tiocmd: change mistaken use of start_src for start_arg
authorSpencer E. Olson <olsonse@umich.edu>
Tue, 12 Jan 2016 17:33:18 +0000 (10:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 02:35:16 +0000 (18:35 -0800)
commit1fd24a4702d2af0ea4d5845126cf57d4d1796216
tree3a8b77a974b84e89ed182b8dee72a1219eb79928
parentd4631301225a44d36b98ce39a2e3d6e00f59d8fb
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: 6a760394d7eb ("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>
drivers/staging/comedi/drivers/ni_tiocmd.c