Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7277914imu; Wed, 14 Nov 2018 14:44:15 -0800 (PST) X-Google-Smtp-Source: AJdET5fd+XmBS5CfpP/J8rnR8iphP5Ltj/uRUjXOxsaAioM20nenwolqf8NvuoJvYyNEVFmOvNsB X-Received: by 2002:a63:24c2:: with SMTP id k185mr3367313pgk.406.1542235454982; Wed, 14 Nov 2018 14:44:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542235454; cv=none; d=google.com; s=arc-20160816; b=mHy+wh02z+RLX4OKkD+ENMLwKpASnu7ySyLBTbOP1LNg+eAPHWHfxG/gIYy1VAIFTJ Vaq6MOYhhf3zx5EKv9JMhyHsMacechf9sCkVpzlaGoyUBmR3kZyaAN/UVvynMruTRDt7 ZCFGYn78P03l82/NkUSmIw+GSkmOh3a5J5wcWQ3mptJA1wMjyYiH3YoOdmvnU7XlcqhJ 0romFYorqR6HYSpc56t1rlCrdTEmgV42eaTfJIZkyqsokPuKPisFYT3w1EbvAB5eci6+ B+qXfuHSWEGwbhzEx+ngfAWL85/mAgtlgxA3zfsWZb8JK1r2//RdJMKbUQpWURHBlzlu LJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=VkV/nk7b6+vm7cg1apGIFyz1HnudWDpVtXh/07KV34g=; b=wNE9vDfNjQ+lMqmwhCCMyUUBm9nMxVr0uHdw74x0XqjEJA80Jy4k8CDePMR+2H3+ef hFmAyvDl/fClX1jP1pVWHl3JDSpKnos3kRw5MmyX3PCy9QX4Cnl6D8vxXuHVG2KeZ4nK JUMQRQAtW3GaTBXAi6KlHTLtCaX7zFBvrHZ11TtYFYWVJW+B8+hBaYPfPAhCz8zKSDJc 1EnApFoLh4CYscyoEGaDnoRj1fde2yYzdZdbZzTeIUR+Fj0ttDwWCHy8zU6UAroGFI83 apK1cdb3u/yNM5JfnSxjUiD+z7I8mZr6qCGyBdPbP3jNCxpIhkWCoLsDtWTDHnOQ0rK7 4e7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dt+cMgzp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y23-v6si25688999plr.8.2018.11.14.14.43.59; Wed, 14 Nov 2018 14:44:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dt+cMgzp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729081AbeKOIsf (ORCPT + 99 others); Thu, 15 Nov 2018 03:48:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:34392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728605AbeKOI1U (ORCPT ); Thu, 15 Nov 2018 03:27:20 -0500 Received: from sasha-vm.mshome.net (unknown [64.114.255.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB1F82251A; Wed, 14 Nov 2018 22:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542234137; bh=dwpbcC/xzToXpkccDht6Z0VciEGWwLp1UJytnQyypBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dt+cMgzpKihBp+NfclpJsH94tcA8R2Ld1nxRuSmohWhSyTyrAfG5EvVpr7ji72TYY jZtaDcPHPtqV8KvcJ6SMag2GB4ZmoevQ/nVE4dk0iYfQ4YMBzI8l00nqG8DeADUnyN wR5E+4i5pFR+nT6+JPpx/JTYTZEcRNEJdgU1T5S4= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Liam Merwick , Liam Merwick , Juergen Gross , Sasha Levin Subject: [PATCH AUTOSEL 4.19 36/73] xen/grant-table: Fix incorrect gnttab_dma_free_pages() pr_debug message Date: Wed, 14 Nov 2018 17:21:30 -0500 Message-Id: <20181114222207.98701-36-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181114222207.98701-1-sashal@kernel.org> References: <20181114222207.98701-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liam Merwick [ Upstream commit d9cccfa7c4d1d9ef967ec9308df7304a18609b30 ] 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: 9bdc7304f536 ('xen/grant-table: Allow allocating buffers suitable for DMA') Reported-by: Ross Philipson Signed-off-by: Liam Merwick Reviewed-by: Mark Kanda Reviewed-by: Juergen Gross Signed-off-by: Juergen Gross Signed-off-by: Sasha Levin --- drivers/xen/grant-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index 84575baceebc..97341fa75458 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -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; -- 2.17.1