f62dc8f6 | 02-Jun-2022 |
Dongliang Mu <mudongliangabcd@gmail.com> |
media: flexcop-usb: fix sanity check of bNumEndpoints
Commit d725d20e81c2 ("media: flexcop-usb: sanity checking of endpoint type ") adds a sanity check for endpoint[1], but fails to modify the sanit
media: flexcop-usb: fix sanity check of bNumEndpoints
Commit d725d20e81c2 ("media: flexcop-usb: sanity checking of endpoint type ") adds a sanity check for endpoint[1], but fails to modify the sanity check of bNumEndpoints.
Fix this by modifying the sanity check of bNumEndpoints to 2.
Link: https://lore.kernel.org/linux-media/20220602055027.849014-1-dzm91@hust.edu.cn Fixes: d725d20e81c2 ("media: flexcop-usb: sanity checking of endpoint type") Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
show more ...
|
82fe45f3 | 17-May-2022 |
Oliver Neukum <oneukum@suse.com> |
media: flexcop: allow for modern speeds
High speed is no longer the ultimate in speed.
Link: https://lore.kernel.org/linux-media/20220517131109.28371-2-oneukum@suse.com Signed-off-by: Oliver Neukum
media: flexcop: allow for modern speeds
High speed is no longer the ultimate in speed.
Link: https://lore.kernel.org/linux-media/20220517131109.28371-2-oneukum@suse.com Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
show more ...
|
a8be6b6e | 22-Aug-2022 |
Johan Hovold <johan@kernel.org> |
media: flexcop-usb: use usb_endpoint_maxp()
Use the usb_endpoint_maxp() helper instead of open coding.
Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20220822151456.
media: flexcop-usb: use usb_endpoint_maxp()
Use the usb_endpoint_maxp() helper instead of open coding.
Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20220822151456.27178-4-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
show more ...
|
fd449bb9 | 22-Aug-2022 |
Johan Hovold <johan@kernel.org> |
media: flexcop-usb: clean up URB initialisation
Clean up URB initialisation somewhat by introducing a temporary variable and separating declaration and non-trivial initialisation.
Signed-off-by: Jo
media: flexcop-usb: clean up URB initialisation
Clean up URB initialisation somewhat by introducing a temporary variable and separating declaration and non-trivial initialisation.
Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20220822151456.27178-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
show more ...
|
cf580e11 | 14-Sep-2020 |
Qinglang Miao <miaoqinglang@huawei.com> |
media: flexcop-usb: remove needless check before usb_free_coherent()
usb_free_coherent() is safe with NULL addr and this check is not required.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com
media: flexcop-usb: remove needless check before usb_free_coherent()
usb_free_coherent() is safe with NULL addr and this check is not required.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
show more ...
|
74a96b51 | 25-Oct-2019 |
Colin Ian King <colin.king@canonical.com> |
media: flexcop-usb: ensure -EIO is returned on error condition
An earlier commit hard coded a return 0 to function flexcop_usb_i2c_req even though the an -EIO was intended to be returned in the case
media: flexcop-usb: ensure -EIO is returned on error condition
An earlier commit hard coded a return 0 to function flexcop_usb_i2c_req even though the an -EIO was intended to be returned in the case where ret != buflen. Fix this by replacing the return 0 with the return of ret to return the error return code.
Addresses-Coverity: ("Unused value")
Fixes: b430eaba0be5 ("[media] flexcop-usb: don't use stack for DMA") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
show more ...
|