summaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2021-08-18 10:49:52 +0800
committerVinod Koul <vkoul@kernel.org>2021-08-23 17:40:33 +0530
commitea6942dad4b2a7e1735aa0f10f3d0b04b847750f (patch)
treef6c41ea740884ada64ea62aaf39c4ab9562e3094 /net/atm
parentdd81e7c3f0bb4fbe48b770b389ab6ccb95058dab (diff)
soundwire: intel: fix potential race condition during power down
The power down sequence sets the link_up flag as false outside of the mutex_lock. This is potentially unsafe. In additional the flow in that sequence can be improved by first testing if the link was powered, setting the link_up flag as false and proceeding with the power down. In case the CPA bits cannot be cleared, we only flag an error since we cannot deal with interrupts any longer. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20210818024954.16873-2-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'net/atm')
0 files changed, 0 insertions, 0 deletions