Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25858
b: refs/heads/master
c: 2436f03
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Greg Kroah-Hartman committed Apr 17, 2006
1 parent d0a5924 commit c88dc11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66e0a9888b774af625ce544f7c6597c7506d07db
refs/heads/master: 2436f039d26a91e5404974ee0cb789b17db46168
5 changes: 5 additions & 0 deletions trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,18 @@ static char *make_block_name(struct gendisk *disk)
char *name;
static char *block_str = "block:";
int size;
char *s;

size = strlen(block_str) + strlen(disk->disk_name) + 1;
name = kmalloc(size, GFP_KERNEL);
if (!name)
return NULL;
strcpy(name, block_str);
strcat(name, disk->disk_name);
/* ewww... some of these buggers have / in name... */
s = strchr(name, '/');
if (s)
*s = '!';
return name;
}

Expand Down

0 comments on commit c88dc11

Please sign in to comment.