[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] libxenguest: use bitmap_alloc
commit 3cccdae45242dab27198b8e150be0c85acd5d3c9 Author: Olaf Hering <olaf@xxxxxxxxx> AuthorDate: Wed Sep 9 11:06:37 2020 +0000 Commit: Wei Liu <wl@xxxxxxx> CommitDate: Wed Sep 9 11:07:31 2020 +0000 libxenguest: use bitmap_alloc Use existing helper to allocate a bitmap. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> [ wei: rebase to staging ] Signed-off-by: Wei Liu <wl@xxxxxxx> --- tools/libs/guest/xg_sr_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libs/guest/xg_sr_save.c b/tools/libs/guest/xg_sr_save.c index d74c72cba6..2ba7c3200c 100644 --- a/tools/libs/guest/xg_sr_save.c +++ b/tools/libs/guest/xg_sr_save.c @@ -809,7 +809,7 @@ static int setup(struct xc_sr_context *ctx) xch, dirty_bitmap, NRPAGES(bitmap_size(ctx->save.p2m_size))); ctx->save.batch_pfns = malloc(MAX_BATCH_SIZE * sizeof(*ctx->save.batch_pfns)); - ctx->save.deferred_pages = calloc(1, bitmap_size(ctx->save.p2m_size)); + ctx->save.deferred_pages = bitmap_alloc(ctx->save.p2m_size); if ( !ctx->save.batch_pfns || !dirty_bitmap || !ctx->save.deferred_pages ) { -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |