Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68497
b: refs/heads/master
c: d67d1d7
h: refs/heads/master
i:
  68495: 147af1c
v: v3
  • Loading branch information
Mariusz Kozlowski authored and David Woodhouse committed Aug 1, 2007
1 parent d3b8ca8 commit ece5492
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 8f0f23f97adbd833000e25e41c1310e49ace9ba8
refs/heads/master: d67d1d7fc344e44b51296327a0b09a9419ca307f
3 changes: 1 addition & 2 deletions trunk/drivers/mtd/inftlmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,14 +580,13 @@ int INFTL_mount(struct INFTLrecord *s)
logical_block = block = BLOCK_NIL;

/* Temporary buffer to store ANAC numbers. */
ANACtable = kmalloc(s->nb_blocks * sizeof(u8), GFP_KERNEL);
ANACtable = kcalloc(s->nb_blocks, sizeof(u8), GFP_KERNEL);
if (!ANACtable) {
printk(KERN_WARNING "INFTL: allocation of ANACtable "
"failed (%zd bytes)\n",
s->nb_blocks * sizeof(u8));
return -ENOMEM;
}
memset(ANACtable, 0, s->nb_blocks);

/*
* First pass is to explore each physical unit, and construct the
Expand Down

0 comments on commit ece5492

Please sign in to comment.