Commit f8ad4130 authored by Karthikeyan Ramasubramanian's avatar Karthikeyan Ramasubramanian
Browse files

msm: smd_tty: Check the device is open before scheduling tasklets



When the SMD tty device is closed, tasklets to perform read operation
is killed first and then the underlying SMD channel is closed. There
is a race condition where the tasklet gets rescuduled between these
two operations. So ensure that the device is open before scheduling
tasklets to avoid this race condition.

Change-Id: I80c4e1538a69b5b05c1aadb0f4b0905f96a90001
CRs-Fixed: 318764
Signed-off-by: default avatarKarthikeyan Ramasubramanian <kramasub@codeaurora.org>
parent d563de57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment