From 3deb310183aa83bd74d6d98fbe8974af94451b85 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 26 Apr 2007 15:24:20 +0200 Subject: [PATCH] Log error on io buffer allocation Currently it just exits silently. Signed-off-by: Jens Axboe --- memory.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/memory.c b/memory.c index f67dd6d9..d075c352 100644 --- a/memory.c +++ b/memory.c @@ -145,6 +145,9 @@ int allocate_io_mem(struct thread_data *td) ret = 1; } + if (ret) + td_verror(td, ENOMEM, "iomem allocation"); + return ret; } -- 2.25.1