diff options
| author | Gwendal Grignou <gwendal@chromium.org> | 2026-02-03 19:48:48 -0800 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-02-04 04:38:13 +0000 |
| commit | 520e345dfdab89aed4a0ad98d5ec35086661a11a (patch) | |
| tree | d236e6ec9b6980202b603743ad587a205a9c081f /include/linux/moduleloader.h | |
| parent | d55493f6d2dae3a8e8b50fe82e947781a7735c51 (diff) | |
platform/chrome: lightbar: Use flexible array member
Variable arrays should be defined as [], not [0], otherwise
the kernel complains:
memcpy : detected field-spanning write (size 9) of single field "param->set_program_ex.data" at drivers/platform/chrome/cros_ec_lightbar.c:603 (size 0)
Fixes: 9600b8bdbfe4 ("platform/chrome: lightbar: Add support for large sequence")
Signed-off-by: Gwendal Grignou <gwendal@google.com>
Link: https://lore.kernel.org/r/20260204034848.697033-1-gwendal@google.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'include/linux/moduleloader.h')
0 files changed, 0 insertions, 0 deletions
