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:
Holmes Chou <holmeschou@google.com>
Change-Id: I4d4878052cc3e6d21ba810b13e847690a840ac26
Loading
Please sign in to comment