]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: uvcvideo: Fix XU id print in forward scan
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 21 Feb 2021 21:11:50 +0000 (22:11 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 09:47:45 +0000 (11:47 +0200)
An error message in the forward scan code incorrectly prints the ID of
the source entity instead of the XU entity being scanned. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_driver.c

index 30ef2a3110f72bb3bfa0b19328d4905cbdf5b242..e55cf02baad6f8ee822c78199b4cbe6c4b8298a2 100644 (file)
@@ -1712,7 +1712,7 @@ static int uvc_scan_chain_forward(struct uvc_video_chain *chain,
                        if (forward->bNrInPins != 1) {
                                uvc_dbg(chain->dev, DESCR,
                                        "Extension unit %d has more than 1 input pin\n",
-                                       entity->id);
+                                       forward->id);
                                return -EINVAL;
                        }