Commit 220f8ee8 authored by Dipen Parmar's avatar Dipen Parmar Committed by Gerrit - the friendly Code Review server
Browse files

msm: sps: Fix BAM ISR race with pipe disconnect



Pipe EOT can occur while SPS pipe disconnect is being done.
The pipe disconnect can free up resources and pointers that
are used by bam_isr() in parallel in SMP environment and can
cause null pointer dereference.

Fix this by calling synchronize_irq() before freeing up resources
and by spin_lock to avoid race conditions.

Change-Id: I51eb88e1d68123d13d4aaf654e729236a4a3f144
Signed-off-by: default avatarDipen Parmar <dipenp@codeaurora.org>
parent 562ed950
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment