Commit d9cccfa7 authored by Liam Merwick's avatar Liam Merwick Committed by Juergen Gross

xen/grant-table: Fix incorrect gnttab_dma_free_pages() pr_debug message

If a call to xenmem_reservation_increase() in gnttab_dma_free_pages()
fails it triggers a message "Failed to decrease reservation..." which
should be "Failed to increase reservation..."

Fixes: 9bdc7304 ('xen/grant-table: Allow allocating buffers suitable for DMA')
Reported-by: default avatarRoss Philipson <ross.philipson@oracle.com>
Signed-off-by: default avatarLiam Merwick <liam.merwick@oracle.com>
Reviewed-by: default avatarMark Kanda <mark.kanda@oracle.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent f9005571
...@@ -914,7 +914,7 @@ int gnttab_dma_free_pages(struct gnttab_dma_alloc_args *args) ...@@ -914,7 +914,7 @@ int gnttab_dma_free_pages(struct gnttab_dma_alloc_args *args)
ret = xenmem_reservation_increase(args->nr_pages, args->frames); ret = xenmem_reservation_increase(args->nr_pages, args->frames);
if (ret != args->nr_pages) { if (ret != args->nr_pages) {
pr_debug("Failed to decrease reservation for DMA buffer\n"); pr_debug("Failed to increase reservation for DMA buffer\n");
ret = -EFAULT; ret = -EFAULT;
} else { } else {
ret = 0; ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment