aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/io-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-read.c')
-rw-r--r--libdiskfs/io-read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c
index a706d677..9ce06dde 100644
--- a/libdiskfs/io-read.c
+++ b/libdiskfs/io-read.c
@@ -61,6 +61,7 @@ diskfs_S_io_read (struct protid *cred,
{
ourbuf = 1;
buf = mmap (0, maxread, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0);
+ assert_backtrace (buf != MAP_FAILED);
*data = buf;
}
else