summaryrefslogtreecommitdiff
path: root/arch/um/include/sysdep-i386/kernel-offsets.h
diff options
context:
space:
mode:
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>2008-11-06 01:21:16 +0300
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-11-06 01:22:02 +0300
commitdc8a0843a435b2c0891e7eaea64faaf1ebec9b11 (patch)
tree2646065fd3b332e51af6d2c141833e6a00a7441b /arch/um/include/sysdep-i386/kernel-offsets.h
parent467622ef2acb01986eab37ef96c3632b3ea35999 (diff)
downloadlinux-dc8a0843a435b2c0891e7eaea64faaf1ebec9b11.tar.xz
[JFFS2] fix race condition in jffs2_lzo_compress()
deflate_mutex protects the globals lzo_mem and lzo_compress_buf. However, jffs2_lzo_compress() unlocks deflate_mutex _before_ it has copied out the compressed data from lzo_compress_buf. Correct this by moving the mutex unlock after the copy. In addition, document what deflate_mutex actually protects. Cc: stable@kernel.org Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Acked-by: Richard Purdie <rpurdie@openedhand.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/um/include/sysdep-i386/kernel-offsets.h')
0 files changed, 0 insertions, 0 deletions