Commit 4b76ac38 authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

LWIS: Fix wrong kfree causing kernel panic



This fixes use-after-free quickly. This remains failed device
in the global list, but will be freed lwis_driver_exit().

It'd be better to free the failed device right away, which is TODO.

Bug: 178751352
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@google.com>
Change-Id: I3a283947ae079f19a55f5199a6aacd67aa35e7eb
parent 32cf7ee4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment