]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: tm6000: Avoid card name truncation
authorKees Cook <keescook@chromium.org>
Tue, 3 Aug 2021 19:46:10 +0000 (21:46 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:32:57 +0000 (07:32 +0100)
commitee97efc16d0260dd77e22fd9b1501eccb11c0c1d
tree206c6e4c58c2525d9be53cc7f855598b7e3b6b3d
parente2f6ad6ee4ed818e079bfe3e0ac6f73ea6eb813a
media: tm6000: Avoid card name truncation

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 42bb98e420d454fef3614b70ea11cc59068395f6 ]

The "card" string only holds 31 characters (and the terminating NUL).
In order to avoid truncation, use a shorter card description instead of
the current result, "Trident TVMaster TM5600/6000/60".

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: e28f49b0b2a8 ("V4L/DVB: tm6000: fix some info messages")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/media/usb/tm6000/tm6000-video.c