]> git.baikalelectronics.ru Git - kernel.git/commit
leds: Use struct_size() in allocation
authorKees Cook <keescook@chromium.org>
Mon, 11 Jun 2018 23:31:49 +0000 (16:31 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 12 Jun 2018 23:19:22 +0000 (16:19 -0700)
commitbad28edc07923eb73e18a44ec6cfc1a44b1858df
treec0334fc6453d7dd3ca93071f36bb15fc0d037dd3
parent2bae9ea999ed850b698576a3842100f43b98e33f
leds: Use struct_size() in allocation

This case got missed by the earlier treewide struct_size() conversions.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/leds/leds-cr0014114.c