Skip to content

Commit

Permalink
xen/grant-table: Fix incorrect gnttab_dma_free_pages() pr_debug message
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
merwick authored and jgross1 committed Nov 6, 2018
1 parent f900557 commit d9cccfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ int gnttab_dma_free_pages(struct gnttab_dma_alloc_args *args)

ret = xenmem_reservation_increase(args->nr_pages, args->frames);
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;
} else {
ret = 0;
Expand Down

0 comments on commit d9cccfa

Please sign in to comment.