mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
media: uvcvideo: Reorder uvc_status_init()
Only initialize the input device if the interrupt endpoint has been properly initialized. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20241022-order_status-v1-1-3904fafca340@chromium.org Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
2ac0bd2713
commit
33656034de
|
|
@ -262,8 +262,6 @@ int uvc_status_init(struct uvc_device *dev)
|
|||
if (ep == NULL)
|
||||
return 0;
|
||||
|
||||
uvc_input_init(dev);
|
||||
|
||||
dev->status = kzalloc(sizeof(*dev->status), GFP_KERNEL);
|
||||
if (!dev->status)
|
||||
return -ENOMEM;
|
||||
|
|
@ -289,6 +287,8 @@ int uvc_status_init(struct uvc_device *dev)
|
|||
dev->status, sizeof(*dev->status), uvc_status_complete,
|
||||
dev, interval);
|
||||
|
||||
uvc_input_init(dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user