IPC: add bus lock protect for ipc_device_list
authorShijie Zhang <shijie.zhang@intel.com>
Tue, 22 May 2012 20:12:23 +0000 (04:12 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 30 May 2012 16:09:18 +0000 (09:09 -0700)
commit753bde6a073032e063d27653331e16ce8b9b5c1f
tree0f1c89f819d4683e5a85b7e1cc879930dd04b3d7
parentceaafc02e99e2b0e3189e0802f1713ba4df73d37
IPC: add bus lock protect for ipc_device_list

BZ: 37748

In current IPC framework, ipc_device_list is not under protect by bus
lock, which may cause synchronization problem when they are accessed by
multi process at the same time. This patch puts it under protect of bus
lock to avoid this risk.

Change-Id: Ic48f2eb291ef900b1f1c498a3b6e7efb3fff8737
Signed-off-by: Shijie Zhang <shijie.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/49725
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Tang, HaifengX <haifengx.tang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/base/ipc.c