]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: comedi: daqboard2000: bug fix board type matching code
authorIan Abbott <abbotti@mev.co.uk>
Wed, 29 Jun 2016 19:27:44 +0000 (20:27 +0100)
committerJiri Slaby <jslaby@suse.cz>
Fri, 23 Sep 2016 07:29:23 +0000 (09:29 +0200)
commit1186d77797e84479057ba69cae221e5e2b06bf04
tree8d837b32b7766428428c630cc0d8df474e0676e3
parentf3a6e82686efcce3c2b3eca44f9d2cb34821bfab
staging: comedi: daqboard2000: bug fix board type matching code

commit 80e162ee9b31d77d851b10f8c5299132be1e120f upstream.

`daqboard2000_find_boardinfo()` is supposed to check if the
DaqBoard/2000 series model is supported, based on the PCI subvendor and
subdevice ID.  The current code is wrong as it is comparing the PCI
device's subdevice ID to an expected, fixed value for the subvendor ID.
It should be comparing the PCI device's subvendor ID to this fixed
value.  Correct it.

Fixes: 7e8401b23e7f ("staging: comedi: daqboard2000: add back subsystem_device check")
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/staging/comedi/drivers/daqboard2000.c