Geert Uytterhoeven dc8a0843a4 [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>
2008-11-05 23:22:02 +01:00
..
2008-10-17 12:44:46 -05:00
2008-10-16 11:21:48 -07:00
2008-09-13 14:41:51 -07:00
2008-10-20 08:52:42 -07:00
2008-08-20 15:40:32 -07:00
2008-10-13 09:47:43 +11:00
2008-09-05 09:51:30 -05:00
2008-09-02 23:15:22 +01:00
2008-04-29 08:06:00 -07:00
2008-10-16 16:08:57 +02:00
2008-10-16 11:21:46 -07:00
2008-07-25 10:53:34 -07:00
2008-10-17 02:38:36 +11:00
2008-10-14 18:31:46 -07:00
2008-07-25 10:53:34 -07:00
2008-07-26 20:53:40 -04:00
2008-07-26 12:00:08 -07:00
2008-10-16 11:21:38 -07:00
2008-10-09 08:57:05 +02:00
2008-10-20 08:52:32 -07:00
2008-10-17 02:38:36 +11:00
2008-01-30 13:31:46 +01:00
2008-05-01 13:08:16 -04:00
2008-10-16 11:21:46 -07:00
2008-10-16 11:21:32 -07:00
2008-08-01 11:25:24 -04:00
2008-07-26 20:53:40 -04:00
2008-02-06 10:41:07 -08:00
2008-10-16 11:21:51 -07:00
2008-02-14 21:13:33 -08:00
2008-10-13 09:51:41 -07:00
2008-07-25 10:53:35 -07:00
2008-07-02 15:06:27 -06:00