commit | 9012564160d922fbeea0b933dbcd4bb68105bcc7 | [log] [tgz] |
---|---|---|
author | Vamsi Krishna <vskrishn@codeaurora.org> | Sat May 12 16:06:13 2012 -0700 |
committer | Vamsi Krishna <vskrishn@codeaurora.org> | Mon May 14 13:11:39 2012 -0700 |
tree | 989ee095288eac7ce62e7c3e79ade918682585e8 | |
parent | a6d571b8905e6e0b6df507c3c5d6df9f6e01c0e7 [diff] |
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: Vamsi Krishna <vskrishn@codeaurora.org>