
On Mon, Aug 27, 2018 at 01:13:30AM +0200, Eugeniu Rosca wrote:
Fix below UBSAN reports, thrown on sandbox:
============================================================ UBSAN: Undefined behaviour in drivers/input/input.c:512:7 variable length array bound value 0 <= 0 ============================================================ ============================================================ UBSAN: Undefined behaviour in drivers/input/input.c:340:6 variable length array bound value 0 <= 0 ============================================================
Inspired from Linux v4.11-rc1 commit 620711944459 ("crypto: algif_hash - avoid zero-sized array").
Fixes: 9bc590e5119f ("input: Add generic keyboard input handler") Signed-off-by: Eugeniu Rosca erosca@de.adit-jv.com
Reviewed-by: Tom Rini trini@konsulko.com