Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155820
b: refs/heads/master
c: e9084ec
h: refs/heads/master
v: v3
  • Loading branch information
Jan Beulich authored and H. Peter Anvin committed Jul 21, 2009
1 parent ccbf5b6 commit d76aca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: ebe119cd0929df4878f758ebf880cb435e4dcaaf
refs/heads/master: e9084ec98bb9aa3abc6cf73181177780ce7546f8
6 changes: 2 additions & 4 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -1692,17 +1692,15 @@ static ssize_t set_trigger(struct sys_device *s, struct sysdev_attribute *attr,
const char *buf, size_t siz)
{
char *p;
int len;

strncpy(mce_helper, buf, sizeof(mce_helper));
mce_helper[sizeof(mce_helper)-1] = 0;
len = strlen(mce_helper);
p = strchr(mce_helper, '\n');

if (*p)
if (p)
*p = 0;

return len;
return strlen(mce_helper) + !!p;
}

static ssize_t set_ignore_ce(struct sys_device *s,
Expand Down

0 comments on commit d76aca0

Please sign in to comment.