summaryrefslogtreecommitdiff
path: root/contrib/webcscope/icons/CVS/Entries.Old
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/webcscope/icons/CVS/Entries.Old')
-rw-r--r--contrib/webcscope/icons/CVS/Entries.Old0
1 files changed, 0 insertions, 0 deletions
diff --git a/contrib/webcscope/icons/CVS/Entries.Old b/contrib/webcscope/icons/CVS/Entries.Old
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/contrib/webcscope/icons/CVS/Entries.Old
, this change did not check to see if the mutex is already held. If __spi_sync() is called with the mutex held (ie. 'bus_locked' is true), then a deadlock occurs when __spi_pump_messages() is called. Fix this deadlock by passing the 'bus_locked' state from __spi_sync() to __spi_pump_messages() and only acquire the mutex if not already held. In the case where __spi_pump_messages() is called from spi_pump_messages() it is assumed that the mutex is not held and so call __spi_pump_messages() with 'bus_locked' set to false. Finally, move the unlocking of the mutex to the end of the __spi_pump_messages() function to simplify the code and only call cond_resched() if there are no errors. Fixes: 556351f14e74 ("spi: introduce accelerated read support for spi flash devices") Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')