]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.
authorPhil Turnbull <phil.turnbull@oracle.com>
Fri, 29 Jul 2016 13:43:56 +0000 (09:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:25 +0000 (15:21 +0200)
commit62a3f954e3cc161851cb59ed7953afd50a6493d1
tree5ab378bb482add2fc817c10320e8eea92d900707
parentcd8fb09885bec8f6592a2a6e18975b863fe44777
staging: comedi: adv_pci1760: Do not return EINVAL for CMDF_ROUND_DOWN.

commit c71f20ee76342376e3c4c67cdbe7421d8c4e886e upstream.

The CMDF_ROUND_DOWN case falls through and so always returns -EINVAL.

Fixes: 14b93bb6bbf0 ("staging: comedi: adv_pci_dio: separate out PCI-1760 support")
Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adv_pci1760.c