Commit d015f3ec authored by Matthijs van Duin's avatar Matthijs van Duin Committed by H. Nikolaus Schaller

f_mass_storage: fix potentially unsafe thread wakeup

Signalling from interrupt to thread using a variable should always
either mark that variable 'volatile' or use a suitable barrier.
parent c4f5c41a
......@@ -344,7 +344,7 @@ struct fsg_common {
unsigned int bad_lun_okay:1;
unsigned int running:1;
int thread_wakeup_needed;
int volatile thread_wakeup_needed;
struct completion thread_notifier;
struct task_struct *thread_task;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment