]> git.baikalelectronics.ru Git - kernel.git/commit
media: si470x: Avoid card name truncation
authorKees Cook <keescook@chromium.org>
Tue, 3 Aug 2021 19:46:09 +0000 (21:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:08:00 +0000 (10:08 +0200)
commita8d28e019bd139bc4be84bfcd9c4e9bc86670f54
tree48ffd4be315168aeb058722db2672d44b47fac08
parent75ad8ccf9f84e4706c569632f39bffa92598db84
media: si470x: 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, "Silicon Labs Si470x FM Radio Re".

Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 429d95c7939f ("V4L/DVB (7038): USB radio driver for Silicon Labs Si470x FM Radio Receivers")
Fixes: 7c423d8f4d8e ("V4L/DVB (12416): radio-si470x: add i2c driver for si470x")
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/si470x/radio-si470x-i2c.c
drivers/media/radio/si470x/radio-si470x-usb.c