Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4055099imm; Mon, 14 May 2018 01:45:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo7WNqzm64vyX8Ad4E7/SN6PoD5SY47tFNRbdmk19hCGlAIE2cPPJxvBtsJqS7Pjuh5vkKj X-Received: by 2002:a65:4183:: with SMTP id a3-v6mr7411973pgq.118.1526287542046; Mon, 14 May 2018 01:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526287542; cv=none; d=google.com; s=arc-20160816; b=YE6UH9gH6OQVXbCqW+dFAbpVWFGqLwGAgvHHozdy+Efjn7RZ4K7Ksb+kBii25nW1BU wJdazV//NNF+/No3vZjgIKoaLpTC8agiIKuNmygBRIuqmN4+5RSUXTp1QKFQDgtH/E9c /zzI+4a3JU8wgQdIylaqh7bbzJOVjZOFr1S8hQH3iophCj1/6YRc2VrfGfDCsfm9W8FB H+ZXLDtGXUvPilHU/TcBdVPHAfwTrdTHaKYyS3U6/As/LGOquGKx3GqO9wVaMewFgDnR 7D6oB9r+8rgU3xN19aprZf0T9rYtHViHqhl67jmOLKDrH9YmBEh9EaCfATpGsRAogW5l CDag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=remrkflRrn41qFk31hk3gPdDtqYuqHf6PJraFeqw2Vo=; b=JBfMQdhy2fe/FT0bTC6BYNJ1tPAuqe4sb6ZtIrUMmevYx+tBq1XvAMPw7SltbAWEvB gPVOcOsfgYoxZPxDhngQ9jBvEhHdtEZ1hS6h+Ii1GTgoUTQhdKnnyn+cNORhc5BwCRno mbLjie73vQ7UFBdSsAP826tLwWGZZS4tQsheBg/terXEymwxSagUqB5a5MpBP1k/c22/ M1Hm0DvA6UknEDMPr25yXMCz6ww09Xyy5ezWpSVo0w+PSy5Gyr/J+4SkUR46Q7/QzBDM PETLkQQ0l5m1O4Ua3a+QHqPQhSfZV+99AFJeHjw5GegrTsPRRHUvkbegKLHMuJmY1LBD Awug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cBWA1PcR; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d37-v6si9073877plb.125.2018.05.14.01.45.26; Mon, 14 May 2018 01:45:42 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=cBWA1PcR; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbeENIpP (ORCPT + 99 others); Mon, 14 May 2018 04:45:15 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44989 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbeENIpN (ORCPT ); Mon, 14 May 2018 04:45:13 -0400 Received: by mail-wr0-f193.google.com with SMTP id y15-v6so11340848wrg.11; Mon, 14 May 2018 01:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=remrkflRrn41qFk31hk3gPdDtqYuqHf6PJraFeqw2Vo=; b=cBWA1PcRCzH5ehDS44U9d7h/dkWrIVvjEV0+qo8BKVrUUJ9++jz6mcmKQ2Uurb/9+a NYEFLHxDd9tbeuYcAtqeIr7EFMok7onnGLz5Xb/iq0uCT38GVzZikrs5aY1d/s6Rl9gz IqBRtJQuumfCwhlngytxr85vzRnwXHlIJ5eWEmAmNA87lON03OSJ/8Sgs3nsJv3FK1EJ QA/8Tc5paScTMydLMl1SK8OALFDaCj9SadH+8vn1LLFoRzenRUF7tgtbWrSa/oblunCr vjvMG+7XvQ+TrhlWyZ9u7+WqP9451NYsUZPioxnFtPH/7ePqfPzgIxPXHq+Ja8IZiE1a uHWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=remrkflRrn41qFk31hk3gPdDtqYuqHf6PJraFeqw2Vo=; b=ktmP+vyL+Bsz5UvrptbBxbmUs/Z8mDMHzP651gmqrw+qTmdImPbZYRYW3LiVawDwMd Fo+pekyM3xFcDw7R2AjZTd/4W1BhUo5Jjr8q6ZKwVW6Llwr59AMwp/6IdmB97eq9tfAF c8Q7T587pBRg8EYTeGPh3Orq1CW+yRL0jy27KxMa0/gbvjQmwFdsd8AvS5RntpTBbA2b J4LODWayTtKDzoYhH/lF3AqPRXJ7Sg/hX20SJhtPtesEqBurTdxnQnksWNrL7TTqwNtW plbn7rAIptV++uSBifHn0fxHWXSnUzASqg7n1xPmUo8HEvuUTyDvN9h2lZcj3rdcsB7I ADhA== X-Gm-Message-State: ALKqPweOLm9/L8r9h2M3W8WWFHlTD8w8CbzXpIAXQTFU62Ec8lxGIzO7 S0aY3vt9naDliI1OgQDwOt0= X-Received: by 2002:adf:86b2:: with SMTP id 47-v6mr6282489wrx.256.1526287512422; Mon, 14 May 2018 01:45:12 -0700 (PDT) Received: from localhost (p200300E41F19FC00D958180F3872A5C5.dip0.t-ipconnect.de. [2003:e4:1f19:fc00:d958:180f:3872:a5c5]) by smtp.gmail.com with ESMTPSA id z66-v6sm6726256wme.13.2018.05.14.01.45.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 01:45:11 -0700 (PDT) Date: Mon, 14 May 2018 10:45:10 +0200 From: Thierry Reding To: Dmitry Osipenko Cc: Mikko Perttunen , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] gpu: host1x: Fix dma_free_wc() argument in the error path Message-ID: <20180514084510.GB18312@ulmo> References: <20180423095456.16697-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wq9mPyueHGvFACwf" Content-Disposition: inline In-Reply-To: <20180423095456.16697-1-digetx@gmail.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wq9mPyueHGvFACwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 23, 2018 at 12:54:56PM +0300, Dmitry Osipenko wrote: > If IOVA allocation or IOMMU mapping fails, dma_free_wc() is invoked with > size=3D0 because of a typo, that triggers "kernel BUG at mm/vmalloc.c:124= !". >=20 > Signed-off-by: Dmitry Osipenko > --- > drivers/gpu/host1x/cdma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks. Thierry --wq9mPyueHGvFACwf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlr5TJYACgkQ3SOs138+ s6HREg/6AvZhQov2KIbIWwTeMX0QdWhqCVvoOWpMfpwIKC6MxZXHQj7RV0RMdG1J ennhaAkaIDhHrkjYTU7AnZBbv8rtQB5pNLaKHg/JofU3ctgA7z3tpNhVYXoyuNeR W9n1aBVUrl7b+NECAU3z+JKPKrUa1Reh1d7k05c1Ve+tAEMtatY3/xflZfNXqDJd ajcGDlqo/dFRQ2aqs2f7Vu3FcB/HHkFW/nijKaXnk1DPIJY0EoxTFkvSFE2nO2kn oV2vHBe9pCMCMYQKBKizuBy/e35ISLA4E9MN87Fz3O+hf5zANAN9N1Vr+xSbLJuj Y3ojKW9GltmFsOkNh/rDM9F0Vb3+ss8ptMmBEVqoQ5yEtO+4p11TbEHHrV6tMgpR ReYAGdm34+nX0t8IVr1gwppuU/n9ZBmMigfxCWpJCp1s8bV60xYe5LDj3YI891C4 83Q9q/VilwSDdjBz4InN3juqJMvZgFnibWjNkn5BeWFQVymr8wq51SU9WCKtINWq 4JFKrAoF5TCaqN+XhMy9zC0C5rcjEJEgL2Y3Gp6MrwR/uBwXMT/9hcTgycLRplLG Eekf4GuCsEchBBVBowBgmCS9uU+5I6LR++ttoh86ObztPms4cXc+BdGUDI0f3zEo Aoe04Nbx75MGZeQI+8lk0IFZIKVGWcKXeM0WOFMT9XDJ2yHLsts= =eBwA -----END PGP SIGNATURE----- --wq9mPyueHGvFACwf--