media: tm6000: Avoid card name truncation
authorKees Cook <keescook@chromium.org>
Tue, 3 Aug 2021 19:46:10 +0000 (21:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:08:00 +0000 (10:08 +0200)
commit42bb98e420d454fef3614b70ea11cc59068395f6
treeb429bef552ce3bbe4f732183ca12d6abbf1c3ad5
parent2908249f3878a591f7918368fdf0b7b0a6c3158c
media: tm6000: Avoid card name truncation

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>
drivers/media/usb/tm6000/tm6000-video.c