commit | 5ffd27fa8d7950a3c2136100860273e6ff2605e0 | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Wed Aug 08 00:07:03 2012 +0200 |
committer | Jiri Kosina <jkosina@suse.cz> | Sat Sep 01 09:57:10 2012 -0700 |
tree | cb45fc1d98d907dbadbded6553cf483b55af18e3 | |
parent | 7122bbb0d14b7a6031aeef046b45d4934cb94ba7 [diff] [blame] |
doc: aliasing-test: close fd on write error If write fails, remember to close(fd) before returning. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
diff --git a/Documentation/ia64/aliasing-test.c b/Documentation/ia64/aliasing-test.c index 5caa2af3..62a190d 100644 --- a/Documentation/ia64/aliasing-test.c +++ b/Documentation/ia64/aliasing-test.c
@@ -132,6 +132,7 @@ rc = write(fd, "1", 2); if (rc <= 0) { + close(fd); perror("write"); return -1; }