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

Skip to content
Commit 7206a4c8 authored by Guang Jian Zeng's avatar Guang Jian Zeng
Browse files

usb: ks_bridge: Check dev status in ksb_fs_release function



If the ksb device is disconnected before calling ksb_fs_release,
the device pointer may already be freed, which will lead to a
crash when calling dev_dbg. Fix this by checking the connection
status before calling dev_dbg.

CRs-fixed: 661871
Change-Id: I04c9e861f519f5fcbe57a8c4edf1038647c09783
Signed-off-by: default avatarGuang Jian Zeng <gzeng@codeaurora.org>
parent 0c694e68
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