aboutsummaryrefslogtreecommitdiff
path: root/Documentation/ia64/aliasing-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/ia64/aliasing-test.c')
-rw-r--r--Documentation/ia64/aliasing-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/ia64/aliasing-test.c b/Documentation/ia64/aliasing-test.c
index 3dfb76ca693..62a190d45f3 100644
--- a/Documentation/ia64/aliasing-test.c
+++ b/Documentation/ia64/aliasing-test.c
@@ -132,6 +132,7 @@ static int read_rom(char *path)
rc = write(fd, "1", 2);
if (rc <= 0) {
+ close(fd);
perror("write");
return -1;
}
@@ -177,7 +178,7 @@ static int scan_rom(char *path, char *file)
/*
* It's OK if the ROM is unreadable. Maybe there
- * is no ROM, or some other error ocurred. The
+ * is no ROM, or some other error occurred. The
* important thing is that no MCA happened.
*/
if (rc > 0)