Commit 1d1dc811 authored by Holmes Chou's avatar Holmes Chou
Browse files

LWIS: release related resource when device init. failed



Release related resource that allocated from lwis_base_probe()
when device initialized failed.
Current implementation only free lwis device, but did not
remove it from device list. The memory that allocated in
lwis_base_parse_dt() also did not be freed.

Bug: 178751352
Test: boot to home, write test code force trigger init failed
Signed-off-by: default avatarHolmes Chou <holmeschou@google.com>
Change-Id: I4d4878052cc3e6d21ba810b13e847690a840ac26
parent 83a7727e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment