Bug 200227
Summary: | no exposure setting on webcams using uvcvideo | ||
---|---|---|---|
Product: | Drivers | Reporter: | Safocl (safocl88) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.17.2 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | patch |
Description
Safocl
2018-06-23 12:03:07 UTC
Created attachment 276767 [details]
patch
Comment on attachment 276767 [details] patch >--- a/drivers/media/usb/uvc/uvc_ctrl.c 2018-06-23 15:12:25.948081416 +0400 >+++ b/drivers/media/usb/uvc/uvc_ctrl.c 2018-06-23 14:57:52.462048382 +0400 >@@ -1600,12 +1600,12 @@ >u8 *data; >int ret; > >- data = kmalloc(1, GFP_KERNEL); >+ data = kmalloc(2, GFP_KERNEL); >if (data == NULL) >return -ENOMEM; > >ret = uvc_query_ctrl(dev, UVC_GET_INFO, ctrl->entity->id, dev->intfnum, >- info->selector, data, 1); >+ info->selector, data, 2); >if (!ret) >info->flags = UVC_CTRL_FLAG_GET_MIN | UVC_CTRL_FLAG_GET_MAX >| UVC_CTRL_FLAG_GET_RES | UVC_CTRL_FLAG_GET_DEF Comment on attachment 276767 [details]
patch
--- a/drivers/media/usb/uvc/uvc_ctrl.c 2018-06-23 15:12:25.948081416 +0400
+++ b/drivers/media/usb/uvc/uvc_ctrl.c 2018-06-23 14:57:52.462048382 +0400
@@ -1600,12 +1600,12 @@
u8 *data;
int ret;
- data = kmalloc(1, GFP_KERNEL);
+ data = kmalloc(2, GFP_KERNEL);
if (data == NULL)
return -ENOMEM;
ret = uvc_query_ctrl(dev, UVC_GET_INFO, ctrl->entity->id, dev->intfnum,
- info->selector, data, 1);
+ info->selector, data, 2);
if (!ret)
info->flags = UVC_CTRL_FLAG_GET_MIN | UVC_CTRL_FLAG_GET_MAX
| UVC_CTRL_FLAG_GET_RES | UVC_CTRL_FLAG_GET_DEF
On Sat, Jun 23, 2018 at 12:03:07PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=200227 > > Bug ID: 200227 > Summary: no exposure setting on webcams using uvcvideo > Product: Drivers > Version: 2.5 > Kernel Version: 4.17.2 All USB bugs should be sent to the linux-usb@vger.kernel.org mailing list, and not entered into bugzilla. Please bring this issue up there, if it is still a problem in the latest kernel release. |