Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4568
b: refs/heads/master
c: be76c5f
h: refs/heads/master
v: v3
  • Loading branch information
Joern Engel authored and Thomas Gleixner committed Jun 29, 2005
1 parent eb5a89a commit dbdc466
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 02b15e343aeefb49f8cac949be599d78250a568f
refs/heads/master: be76c5fb406fad93ab93ba39e7858e03d58c5d30
8 changes: 6 additions & 2 deletions trunk/drivers/mtd/cmdlinepart.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* $Id: cmdlinepart.c,v 1.17 2004/11/26 11:18:47 lavinen Exp $
* $Id: cmdlinepart.c,v 1.18 2005/06/07 15:04:26 joern Exp $
*
* Read flash partition table from command line
*
Expand Down Expand Up @@ -239,7 +239,8 @@ static int mtdpart_setup_real(char *s)
&num_parts, /* out: number of parts */
0, /* first partition */
(unsigned char**)&this_mtd, /* out: extra mem */
mtd_id_len + 1 + sizeof(*this_mtd));
mtd_id_len + 1 + sizeof(*this_mtd) +
sizeof(void*)-1 /*alignment*/);
if(!parts)
{
/*
Expand All @@ -252,6 +253,9 @@ static int mtdpart_setup_real(char *s)
return 0;
}

/* align this_mtd */
this_mtd = (struct cmdline_mtd_partition *)
ALIGN((unsigned long)this_mtd, sizeof(void*));
/* enter results */
this_mtd->parts = parts;
this_mtd->num_parts = num_parts;
Expand Down

0 comments on commit dbdc466

Please sign in to comment.