Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292759
b: refs/heads/master
c: fadd85f
h: refs/heads/master
i:
  292757: 2d7a025
  292755: 9797181
  292751: 5ba3dbd
v: v3
  • Loading branch information
Naoya Horiguchi authored and Tony Luck committed Feb 22, 2012
1 parent 9d72cba commit 48247ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d6126ef5f31ca54980cb067af659a360dfcca037
refs/heads/master: fadd85f16a8ec3fee8af599e79a209682dc52348
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,12 @@ static int __mce_read_apei(char __user **ubuf, size_t usize)
/* Error or no more MCE record */
if (rc <= 0) {
mce_apei_read_done = 1;
/*
* When ERST is disabled, mce_chrdev_read() should return
* "no record" instead of "no device."
*/
if (rc == -ENODEV)
return 0;
return rc;
}
rc = -EFAULT;
Expand Down

0 comments on commit 48247ad

Please sign in to comment.