media: radio-wl1273: Avoid card name truncation
authorKees Cook <keescook@chromium.org>
Tue, 3 Aug 2021 19:46:08 +0000 (21:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:59 +0000 (10:07 +0200)
commitdfadec236aa99f6086141949c9dc3ec50f3ff20d
tree6932e04412c9ce871ba39dfaee6d8e44bfab8bcf
parentea7caaea6ed4ee1fe1ef5878ec29c40ecb082d1e
media: radio-wl1273: 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, "Texas Instruments Wl1273 FM Rad".

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 87d1a50ce451 ("[media] V4L2: WL1273 FM Radio: TI WL1273 FM radio driver")
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/radio/radio-wl1273.c