summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorSayali Lokhande <sayalil@codeaurora.org>2017-10-04 11:56:14 +0530
committerSahitya Tummala <stummala@codeaurora.org>2017-10-16 16:30:58 +0530
commit612b84a96abb56bc5c1bafe10ccfe1937b001252 (patch)
tree68cedf7cd0eb8169c9b29c41abd9b9f6f3f44eb4 /lib/mpi/mpi-inline.h
parent9f5569b5177dcbf68fd387627ae4ff4dc76af030 (diff)
scsi: ufs: Fix race condition in ufs qcom debugfs driver
In function ufs_qcom_dbg_testbus_cfg_write(), the global variable ufs_qcom_host (host) is not protected by lock. In function ufs_qcom_testbug_config(), we are checking this variable in switch case and there is possibility of race condition while accessing host variable in both of these functions. This change fixes the possible race scenario using spin_lock on host_lock. Change-Id: I4e3fa1c3b80b92a648965371e12e52352cf80ce5 Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org> Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions