Skip to content

Commit d9cccfa

Browse files
merwickjgross1
authored andcommitted
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: 9bdc730 ('xen/grant-table: Allow allocating buffers suitable for DMA') Reported-by: Ross Philipson <[email protected]> Signed-off-by: Liam Merwick <[email protected]> Reviewed-by: Mark Kanda <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
1 parent f900557 commit d9cccfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/xen/grant-table.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ int gnttab_dma_free_pages(struct gnttab_dma_alloc_args *args)
914914

915915
ret = xenmem_reservation_increase(args->nr_pages, args->frames);
916916
if (ret != args->nr_pages) {
917-
pr_debug("Failed to decrease reservation for DMA buffer\n");
917+
pr_debug("Failed to increase reservation for DMA buffer\n");
918918
ret = -EFAULT;
919919
} else {
920920
ret = 0;

0 commit comments

Comments
 (0)