| Submitter | Guillaume LECERF |
|---|---|
| Date | April 24, 2010, 3:58 p.m. |
| Message ID | <20100424155832.14723.26868.stgit@shiryu.yomgui.biz> |
| Download | mbox | patch |
| Permalink | /patch/50903/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c index ca584d0..d7c2c67 100644 --- a/drivers/mtd/chips/cfi_util.c +++ b/drivers/mtd/chips/cfi_util.c @@ -104,10 +104,11 @@ __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* n int i; struct cfi_extquery *extp = NULL; - printk(" %s Extended Query Table at 0x%4.4X\n", name, adr); if (!adr) goto out; + printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); + extp = kmalloc(size, GFP_KERNEL); if (!extp) { printk(KERN_ERR "Failed to allocate memory\n");