1 diff -Naur linux-2.6.18-org/fs/jffs2/summary.c linux-2.6.18/fs/jffs2/summary.c
2 --- linux-2.6.18-org/fs/jffs2/summary.c 2011-03-15 16:32:15.374923000 +0100
3 +++ linux-2.6.18/fs/jffs2/summary.c 2011-03-15 16:33:05.246923008 +0100
6 memset(c->summary, 0, sizeof(struct jffs2_summary));
8 - c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL);
9 + c->summary->sum_buf = vmalloc(c->sector_size);
11 if (!c->summary->sum_buf) {
12 JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n");
15 jffs2_sum_disable_collecting(c->summary);
17 - kfree(c->summary->sum_buf);
18 + vfree(c->summary->sum_buf);
19 c->summary->sum_buf = NULL;
26 - if (padsize + datasize > MAX_SUMMARY_SIZE) {
27 + if (0 && padsize + datasize > MAX_SUMMARY_SIZE) {
28 /* It won't fit in the buffer. Abort summary for this jeb */
29 jffs2_sum_disable_collecting(c->summary);