]> git.baikalelectronics.ru Git - kernel.git/commit
JFFS2: add missing verify buffer allocation/deallocation
authorMassimo Cirillo <maxcir@gmail.com>
Thu, 27 Aug 2009 08:44:09 +0000 (10:44 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 3 Sep 2009 14:01:34 +0000 (15:01 +0100)
commit4c2209a6ce6162b86b1f99ca7683969259b0e273
treec0794baebf16ecbbedbe79daaba80281fdad1e03
parent22862f6f7f5b217f90013686d2f042b0acb03e90
JFFS2: add missing verify buffer allocation/deallocation

The function jffs2_nor_wbuf_flash_setup() doesn't allocate the verify buffer
if CONFIG_JFFS2_FS_WBUF_VERIFY is defined, so causing a kernel panic when
that macro is enabled and the verify function is called. Similarly the
jffs2_nor_wbuf_flash_cleanup() must free the buffer if
CONFIG_JFFS2_FS_WBUF_VERIFY is enabled.
The following patch fixes the problem.
The following patch applies to 2.6.30 kernel.

Signed-off-by: Massimo Cirillo <maxcir@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org
fs/jffs2/wbuf.c