summaryrefslogtreecommitdiff
path: root/lib/device/dev-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/device/dev-io.c')
-rw-r--r--lib/device/dev-io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c
index 65b3db473..ffdf75e17 100644
--- a/lib/device/dev-io.c
+++ b/lib/device/dev-io.c
@@ -256,7 +256,7 @@ static int _aligned_io(struct device_area *where, char *buffer,
return _io(where, buffer, should_write, reason);
/* Allocate a bounce buffer with an extra block */
- if (!(bounce_buf = bounce = dm_malloc((size_t) widened.size + block_size))) {
+ if (!(bounce_buf = bounce = malloc((size_t) widened.size + block_size))) {
log_error("Bounce buffer malloc failed");
return 0;
}
@@ -294,7 +294,7 @@ static int _aligned_io(struct device_area *where, char *buffer,
r = 1;
out:
- dm_free(bounce_buf);
+ free(bounce_buf);
return r;
}