Change the summary buffer allocation for resolving an oops during dma transfer using spi bus. Signed-off-by: michael --- fs/jffs2/summary.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c index 629af01..5962b3b 100644 --- a/fs/jffs2/summary.c +++ b/fs/jffs2/summary.c @@ -17,7 +17,6 @@ #include #include #include -#include #include "nodelist.h" #include "debug.h" @@ -30,7 +29,7 @@ int jffs2_sum_init(struct jffs2_sb_info *c) return -ENOMEM; } - c->summary->sum_buf = vmalloc(c->sector_size); + c->summary->sum_buf = kmalloc(c->sector_size, GFP_KERNEL); if (!c->summary->sum_buf) { JFFS2_WARNING("Can't allocate buffer for writing out summary information!\n"); @@ -49,7 +48,7 @@ void jffs2_sum_exit(struct jffs2_sb_info *c) jffs2_sum_disable_collecting(c->summary); - vfree(c->summary->sum_buf); + kfree(c->summary->sum_buf); c->summary->sum_buf = NULL; kfree(c->summary); -- 1.5.2.1.174.gcd03-dirty