diff options
author | Josh Hunt <johunt@akamai.com> | 2011-06-28 01:18:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-06-28 03:00:13 +0200 |
commit | aa2c96d6f329e66cc59352b0f12e8f04e6a9593b (patch) | |
tree | 0d7db978da167df605b14d4880969b39caf5e0f4 /mm/memory-failure.c | |
parent | include/linux/compat.h: declare compat_sys_sendmmsg() (diff) | |
download | linux-aa2c96d6f329e66cc59352b0f12e8f04e6a9593b.tar.xz linux-aa2c96d6f329e66cc59352b0f12e8f04e6a9593b.zip |
drivers/misc/lkdtm.c: fix race when crashpoint is hit multiple times before checking count
We observed the crash point count going negative in cases where the
crash point is hit multiple times before the check of "count == 0" is
done. Because of this we never call lkdtm_do_action(). This patch just
adds a spinlock to protect count.
Reported-by: Tapan Dhimant <tdhimant@akamai.com>
Signed-off-by: Josh Hunt <johunt@akamai.com>
Acked-by: Ankita Garg <ankita@in.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory-failure.c')
0 files changed, 0 insertions, 0 deletions