Commit 5ffd27fa authored by Jesper Juhl's avatar Jesper Juhl Committed by Jiri Kosina

doc: aliasing-test: close fd on write error

If write fails, remember to close(fd) before returning.
Signed-off-by: default avatarJesper Juhl <>
Signed-off-by: default avatarJiri Kosina <>
parent 7122bbb0
......@@ -132,6 +132,7 @@ static int read_rom(char *path)
rc = write(fd, "1", 2);
if (rc <= 0) {
return -1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment