Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142919
b: refs/heads/master
c: 9eb8512
h: refs/heads/master
i:
  142917: e226d7c
  142915: ff87bbb
  142911: d13741f
v: v3
  • Loading branch information
Li Zefan authored and Ingo Molnar committed Apr 9, 2009
1 parent b9acc09 commit bb32fa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 47788c58e66c050982241d9a05eb690daceb05a9
refs/heads/master: 9eb85125ce218a8b8d9a7c982510388e227adbec
10 changes: 5 additions & 5 deletions trunk/kernel/trace/blktrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,12 +1377,12 @@ static int blk_trace_str2mask(const char *str)
{
int i;
int mask = 0;
char *s, *token;
char *buf, *s, *token;

s = kstrdup(str, GFP_KERNEL);
if (s == NULL)
buf = kstrdup(str, GFP_KERNEL);
if (buf == NULL)
return -ENOMEM;
s = strstrip(s);
s = strstrip(buf);

while (1) {
token = strsep(&s, ",");
Expand All @@ -1403,7 +1403,7 @@ static int blk_trace_str2mask(const char *str)
break;
}
}
kfree(s);
kfree(buf);

return mask;
}
Expand Down

0 comments on commit bb32fa4

Please sign in to comment.