projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
d4c5b19
)
Merge branch 'master' of ssh://router/data/git/fio
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 24 Nov 2009 07:48:01 +0000
(08:48 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 24 Nov 2009 07:48:01 +0000
(08:48 +0100)
helpers.c
patch
|
blob
|
blame
|
history
diff --git
a/helpers.c
b/helpers.c
index 987f5b683bb08c0014fb17eae1b1099b3754f722..ba5c654e3b33bf0289422d3561fc5302f36ccce3 100644
(file)
--- a/
helpers.c
+++ b/
helpers.c
@@
-6,7
+6,10
@@
int __weak posix_memalign(void **ptr, size_t align, size_t size)
{
*ptr = memalign(align, size);
- return *ptr == NULL;
+ if (*ptr)
+ return 0;
+
+ return ENOMEM;
}
int __weak posix_fallocate(int fd, off_t offset, off_t len)