Skip to content
Commit 024c9539 authored by Caleb Connolly's avatar Caleb Connolly Committed by Tom Rini
Browse files

input: button_kbd: gracefully handle buttons that fail probe



If a button device fails to probe, it will still be added to the uclass
device list, and therefore will still be iterated over in
button_read_keys() resulting in a UAF on the buttons private data.

Resolve this by unbinding button devices that aren't active after
probing, and print a warning so it's clear that the button is broken.

Fixes: e8779962 ("dm: input: add button_kbd driver")
Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
parent a1802b3c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment