]> git.baikalelectronics.ru Git - kernel.git/commit
media: dtv5100: fix control-request directions
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:28:38 +0000 (15:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 06:53:17 +0000 (08:53 +0200)
commit389b36b057bb624b8786f49e3f479d7127e28743
tree13e8f1b177cfbddc39d5c73b33a714f7fe7b0359
parent27b7f4e2654885ee0d21ce7b93f0ba76c983f8f6
media: dtv5100: fix control-request directions

commit 8c8b9a9be2afa8bd6a72ad1130532baab9fab89d upstream.

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the control requests which erroneously used usb_rcvctrlpipe().

Fixes: 707b13bbb412 ("V4L/DVB (8734): Initial support for AME DTV-5100 USB2.0 DVB-T")
Cc: stable@vger.kernel.org # 2.6.28
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb/dtv5100.c