diff options
| author | Geert Uytterhoeven <[email protected]> | 2008-11-05 22:21:16 +0000 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2008-11-05 22:22:02 +0000 |
| commit | dc8a0843a435b2c0891e7eaea64faaf1ebec9b11 (patch) | |
| tree | 2646065fd3b332e51af6d2c141833e6a00a7441b /net/unix/af_unix.c | |
| parent | [MTD] [NOR] Fix cfi_send_gen_cmd handling of x16 devices in x8 mode (v4) (diff) | |
| download | kernel-dc8a0843a435b2c0891e7eaea64faaf1ebec9b11.tar.gz kernel-dc8a0843a435b2c0891e7eaea64faaf1ebec9b11.zip | |
[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: [email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>
Acked-by: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
