diff options
author | Yi-wei Zhao <gbjc64@motorola.com> | 2015-02-13 17:33:04 -0800 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-13 14:47:40 +1000 |
commit | 2ed1b46030d9062ac9dc12ffef3beb3ece44d1a0 (patch) | |
tree | da109fc8984692fc60816017ce6168ba81863f6a /kernel | |
parent | eeaf4e63e771b8084bd2fecd58ec4430383e2ef5 (diff) | |
download | kernel_samsung_smdk4412-2ed1b46030d9062ac9dc12ffef3beb3ece44d1a0.zip kernel_samsung_smdk4412-2ed1b46030d9062ac9dc12ffef3beb3ece44d1a0.tar.gz kernel_samsung_smdk4412-2ed1b46030d9062ac9dc12ffef3beb3ece44d1a0.tar.bz2 |
staging:android:lmk: read rb tree root with spinlock
there is racing condition: after reading rb tree root, it might be changed
by other tasks before adding new node. it can lead to rb tree corruption.
This patch is to avoid this race condition.
Change-Id: Id86bfd133488ad4ee12cd83c9bf1d1c12ef5598f
Signed-off-by: Yi-wei Zhao <gbjc64@motorola.com>
Reviewed-on: http://gerrit.mot.com/715645
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Sheng-Zhe Zhao <a18689@motorola.com>
SLTApproved: Christopher Fries <cfries@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions