Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230485
b: refs/heads/master
c: 36e8c27
h: refs/heads/master
i:
  230483: 815c7f0
v: v3
  • Loading branch information
Samreen authored and Tomi Valkeinen committed Jan 10, 2011
1 parent 2c5033e commit 2dc28a2
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ed3f90954654a5d9d07b30d39434392a644602fb
refs/heads/master: 36e8c27f3bee5e58f96b0a79d65922fa9e53b030
5 changes: 3 additions & 2 deletions trunk/drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2132,8 +2132,9 @@ static int omapfb_parse_def_modes(struct omapfb2_device *fbdev)
char *str, *options, *this_opt;
int r = 0;

str = kmalloc(strlen(def_mode) + 1, GFP_KERNEL);
strcpy(str, def_mode);
str = kstrdup(def_mode, GFP_KERNEL);
if (!str)
return -ENOMEM;
options = str;

while (!r && (this_opt = strsep(&options, ",")) != NULL) {
Expand Down

0 comments on commit 2dc28a2

Please sign in to comment.