Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2d7f2f3a authored by Bingzhe Cai's avatar Bingzhe Cai Committed by Gerrit - the friendly Code Review server
Browse files

input: sensors: fix incorrect use of input_free_device()



Input_free_device() should only be used if input_register_device()
was not called yet or if it failed, some sensor drivers does not
use this correctly, this may cause null pointer exception when
unbinding driver or binding fails.

Change-Id: I04d455dd9cd59ab76be7d621815ad70668c0bac1
Signed-off-by: default avatarBingzhe Cai <bingzhec@codeaurora.org>
parent 67a679a5
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