Commit 90125641 authored by Vamsi Krishna's avatar Vamsi Krishna
Browse files

hsic: diag_bridge: Fix null pointer crash in read callback



Callback pointer could be null if diag forward succeeds to close all
the hsic channel while a diag request is underway. Prevent crash due
to race by checking for callback pointers(both read and write) before
accessing it.

Change-Id: I9b7b28baa4365db0e217a1925b4db3cf2b8f8280
Signed-off-by: default avatarVamsi Krishna <vskrishn@codeaurora.org>
parent a6d571b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment