Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27764
b: refs/heads/master
c: c3f8abf
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed May 13, 2006
1 parent 24e74b6 commit ce624cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4992a9e88886b0c5ebc3d27eb74d0344c873eeea
refs/heads/master: c3f8abf481c2d2b221b028f7369bc6dd39a9590e
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/nand/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include <linux/mtd/compatmac.h>
#include <linux/bitops.h>
#include <linux/delay.h>

#include <linux/vmalloc.h>

/**
* check_pattern - [GENERIC] check if a pattern is in the buffer
Expand Down Expand Up @@ -873,7 +873,7 @@ int nand_scan_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd)
/* Allocate a temporary buffer for one eraseblock incl. oob */
len = (1 << this->bbt_erase_shift);
len += (len >> this->page_shift) * mtd->oobsize;
buf = kmalloc (len, GFP_KERNEL);
buf = vmalloc(len);
if (!buf) {
printk (KERN_ERR "nand_bbt: Out of memory\n");
kfree (this->bbt);
Expand All @@ -897,7 +897,7 @@ int nand_scan_bbt (struct mtd_info *mtd, struct nand_bbt_descr *bd)
if (md)
mark_bbt_region (mtd, md);

kfree (buf);
vfree (buf);
return res;
}

Expand Down

0 comments on commit ce624cc

Please sign in to comment.