Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l2-ioctl: log buffer type 0 correctly

If userspace passed the invalid buffer type 0 to the kernel, then the
kernel log would show 'type=(null)' since there was no string defined
for type 0. Fix this.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
839aa56d dc8b1c0e

+1
+1
drivers/media/v4l2-core/v4l2-ioctl.c
··· 142 142 EXPORT_SYMBOL(v4l2_field_names); 143 143 144 144 const char *v4l2_type_names[] = { 145 + [0] = "0", 145 146 [V4L2_BUF_TYPE_VIDEO_CAPTURE] = "vid-cap", 146 147 [V4L2_BUF_TYPE_VIDEO_OVERLAY] = "vid-overlay", 147 148 [V4L2_BUF_TYPE_VIDEO_OUTPUT] = "vid-out",