Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195915
b: refs/heads/master
c: 4d68242
h: refs/heads/master
i:
  195913: 0622c01
  195911: 221c6c9
v: v3
  • Loading branch information
Julia Lawall authored and David Woodhouse committed Mar 18, 2010
1 parent ed01b7e commit 8255b15
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 42c259193ef3934733e300fefd3f0d0bb3576f3f
refs/heads/master: 4d682420cead1ce06d8cd44ae193414404f0e7f5
4 changes: 1 addition & 3 deletions trunk/drivers/mtd/devices/block2mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,10 @@ static struct block2mtd_dev *add_device(char *devname, int erase_size)

/* Setup the MTD structure */
/* make the name contain the block device in */
name = kmalloc(sizeof("block2mtd: ") + strlen(devname) + 1,
GFP_KERNEL);
name = kasprintf(GFP_KERNEL, "block2mtd: %s", devname);
if (!name)
goto devinit_err;

sprintf(name, "block2mtd: %s", devname);
dev->mtd.name = name;

dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
Expand Down

0 comments on commit 8255b15

Please sign in to comment.