Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262843
b: refs/heads/master
c: dccb3b0
h: refs/heads/master
i:
  262841: ce2ff29
  262839: f8698ce
v: v3
  • Loading branch information
Thomas Meyer authored and Tony Lindgren committed Aug 10, 2011
1 parent 587663c commit 11cc138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: ae65eb729dd3d3309fb3b7a1badc7b67cada2357
refs/heads/master: dccb3b0eb6924b54a8f30672979fdc28e164d997
14 changes: 4 additions & 10 deletions trunk/arch/arm/mach-omap2/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,10 @@ static void __init omap_mux_set_cmdline_signals(void)
if (!omap_mux_options)
return;

options = kmalloc(strlen(omap_mux_options) + 1, GFP_KERNEL);
options = kstrdup(omap_mux_options, GFP_KERNEL);
if (!options)
return;

strcpy(options, omap_mux_options);
next_opt = options;

while ((token = strsep(&next_opt, ",")) != NULL) {
Expand Down Expand Up @@ -855,24 +854,19 @@ static int __init omap_mux_copy_names(struct omap_mux *src,

for (i = 0; i < OMAP_MUX_NR_MODES; i++) {
if (src->muxnames[i]) {
dst->muxnames[i] =
kmalloc(strlen(src->muxnames[i]) + 1,
GFP_KERNEL);
dst->muxnames[i] = kstrdup(src->muxnames[i],
GFP_KERNEL);
if (!dst->muxnames[i])
goto free;
strcpy(dst->muxnames[i], src->muxnames[i]);
}
}

#ifdef CONFIG_DEBUG_FS
for (i = 0; i < OMAP_MUX_NR_SIDES; i++) {
if (src->balls[i]) {
dst->balls[i] =
kmalloc(strlen(src->balls[i]) + 1,
GFP_KERNEL);
dst->balls[i] = kstrdup(src->balls[i], GFP_KERNEL);
if (!dst->balls[i])
goto free;
strcpy(dst->balls[i], src->balls[i]);
}
}
#endif
Expand Down

0 comments on commit 11cc138

Please sign in to comment.