mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 05:12:49 +00:00
media: radio-shark2: Avoid led_names truncations
[ Upstream commit 1820e16a30
]
Increase the size of led_names so it can fit any valid v4l2 device name.
Fixes:
drivers/media/radio/radio-shark2.c:197:17: warning: ‘%s’ directive output may be truncated writing up to 35 bytes into a region of size 32 [-Wformat-truncation=]
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7394bab35c
commit
cbc12c9693
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ struct shark_device {
|
|||
#ifdef SHARK_USE_LEDS
|
||||
struct work_struct led_work;
|
||||
struct led_classdev leds[NO_LEDS];
|
||||
char led_names[NO_LEDS][32];
|
||||
char led_names[NO_LEDS][64];
|
||||
atomic_t brightness[NO_LEDS];
|
||||
unsigned long brightness_new;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue