Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34147
b: refs/heads/master
c: 7fefb92
h: refs/heads/master
i:
  34145: 71f4a77
  34143: 6399953
v: v3
  • Loading branch information
Jiri Slaby authored and David Woodhouse committed Sep 22, 2006
1 parent 64ba3a6 commit 22c6095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: cdf0a7d16980858e72f5d26bfe48abf01112fab5
refs/heads/master: 7fefb924d7aed7116fe2a68cdbfc9e36318e7300
7 changes: 2 additions & 5 deletions trunk/drivers/mtd/devices/pmc551.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,23 +732,20 @@ static int __init init_pmc551(void)
msize = length;
}

mtd = kmalloc(sizeof(struct mtd_info), GFP_KERNEL);
mtd = kzalloc(sizeof(struct mtd_info), GFP_KERNEL);
if (!mtd) {
printk(KERN_NOTICE "pmc551: Cannot allocate new MTD "
"device.\n");
break;
}

memset(mtd, 0, sizeof(struct mtd_info));

priv = kmalloc(sizeof(struct mypriv), GFP_KERNEL);
priv = kzalloc(sizeof(struct mypriv), GFP_KERNEL);
if (!priv) {
printk(KERN_NOTICE "pmc551: Cannot allocate new MTD "
"device.\n");
kfree(mtd);
break;
}
memset(priv, 0, sizeof(*priv));
mtd->priv = priv;
priv->dev = PCI_Device;

Expand Down

0 comments on commit 22c6095

Please sign in to comment.