commit | 0f85cffe9b7536d2d65f1cf2e23abeab8301ed5d | [log] [tgz] |
---|---|---|
author | Steven Cahail <scahail@codeaurora.org> | Thu Mar 06 14:05:33 2014 -0700 |
committer | Steven Cahail <scahail@codeaurora.org> | Thu Mar 06 14:05:33 2014 -0700 |
tree | 45d440315890b093bda89bd6d4ca2171117d6e1f | |
parent | 638a5730111b5dc2464e98f14b4c3975caef0c55 [diff] |
TTY: msm_smd_tty: Fix simultaneous open/close race condition smd_tty_close currently has a variable that depends on a race condition with tty_port_open. This causes a null-pointer dereference when the same port is simultaneously being opened/closed. Use data from a static array instead of the variable to eliminate the race condition. CRs-Fixed: 624398 Change-Id: Ie55d37feaadd3a15f64e18501cd3af19145dbc8e Signed-off-by: Steven Cahail <scahail@codeaurora.org>