Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2918767pxb; Tue, 12 Jan 2021 01:38:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSXK86LyTu/nNoEUkYi/rASk4SHraWWkQ6+IxBV9Eq7xR28zUxLFH3oLSwbEHix5SEx4Ix X-Received: by 2002:a05:6402:1d9a:: with SMTP id dk26mr2660037edb.283.1610444307376; Tue, 12 Jan 2021 01:38:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610444307; cv=none; d=google.com; s=arc-20160816; b=oPqy2gnuVBRxZ5fW9Ss+N3UV+AhmIpDoh6H9p28nnSFOEjXVU6hmxhcpM/uVV6g5rd pUD7ofLM+BwSYj+dF9QFvCoAInPz36akNSChvLOtEXkODTzXcJlMe/fxfDWnce91Gu2I VzHKluKtbW+5sJj5NYKxxn7Kl52e71brSydjK5Js9sEzd4z5x6IGh+1YDsotOrUqQ/Kr Gi0tYc1v+muc/jOgmCBBwFHHbcOy6e++NA4gNJ2fyOP8q8+9XrZVWR7cFgoLN6bzvAx8 jwrURJil4Ud6g/xDvob3ClFyUgA9kYrO6tNMqqdfJ33w7uj0e9J+YKYdl4LwJ2ALeokE HMdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+2kB21kABqOOu7gOcB3+o+ykSXSkI5oDu8DPYbkJeBA=; b=fVEP2jZ8uh2byw8Aduuw3Yn7Tq69DRLzK1atL+JJPqTdyyd7w3YwJ/NrQQQQUWFNC4 TbNw81qVlK0AeYjLK7CGb6cGBkN/1IyYXuVgAz1oq+TaTLBEoBhjgdmFPoSKXDgGua0m Qzt0SlvST4SqpXAaxrV7OARciLe7AC9xGdHyTAq1ewhF+OhaJjP583gFOw/XovKfDILK /RkWurOznx1EV1rnaZZQhbsyrkc6XZ0Cckv59G71c3e6sNcNmmLBeV5MJgyttdeqHRJq x84KEs2PqJ04TJlRb5vcHTuJeCVjAC+y0X5LW95pnIuCFmwSvgZhTMi9CaBK+8EnPBqO O6qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q2FhOvtZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si1132144edv.49.2021.01.12.01.38.03; Tue, 12 Jan 2021 01:38:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q2FhOvtZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390261AbhAKUdP (ORCPT + 99 others); Mon, 11 Jan 2021 15:33:15 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:32406 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390052AbhAKUdN (ORCPT ); Mon, 11 Jan 2021 15:33:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610397106; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+2kB21kABqOOu7gOcB3+o+ykSXSkI5oDu8DPYbkJeBA=; b=Q2FhOvtZmlkKqLeVc2iVxIsvQcuZQmDbk14ExwkvkSwxyCVYEU20/hNffuE9w8O9OdCOE9 BqAQNYXJg3GHEIsOwYVGYZEyH2nn/rnMA8WVCXmmfNvsrnLsKD5ypWBK7ynjrq129XRfYo VY0xQHVHboY2Uwi5wI5cnxEmcSpobNw= Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-234-TbYNnJb9OM-rTpBhKc0-pw-1; Mon, 11 Jan 2021 15:31:45 -0500 X-MC-Unique: TbYNnJb9OM-rTpBhKc0-pw-1 Received: by mail-io1-f70.google.com with SMTP id x7so43054ion.12 for ; Mon, 11 Jan 2021 12:31:45 -0800 (PST) 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:content-transfer-encoding :in-reply-to; bh=+2kB21kABqOOu7gOcB3+o+ykSXSkI5oDu8DPYbkJeBA=; b=i7cSXghm5W7PDK5SQWdS+ZL4An7lzHbPJ3pTUVjR5BUKwIFXYW/NOHsEZR6ef5cAsb BNLX3cQn1TbHUwVH9VgnzoiCCk1u7t6Tbxh/CBfVfYUrPxwNc6QOAY471+RwW1kFKceC AsmXjsLXvPy9hOXxKi98B0XCXhKWfyp1uYtonrj7/4qMt2C9vaTXN3JWeN0k0VkgMkSb eaItHr97qeyWyUAcXJTL/OJNY7cJFB5A2mfDJ6gxUhLMYpcXv3vzpxINVMzHVa1Hniy5 Ts3C1TOgjaOiJzlfQcsC6L6bCFI05q9mwlCRPNfT4fqkgFB1WNrVZ4dTTnk1AXhyMUpf kT8w== X-Gm-Message-State: AOAM530TakJWYTq8t1BcxCvfxB9JX4Z3O8VqC8FEpl/7Ro8A75L4LytB RzelNlpH/bdumuekT1Bd3Gx4h13oP2EfnazMByk4uvGH266tvoQvdqWp7m3wzDHE2MewsKZTfow xjaUJ5PSSXG7HKKUJS/V3VN3z X-Received: by 2002:a02:c9cc:: with SMTP id c12mr1326491jap.116.1610397104444; Mon, 11 Jan 2021 12:31:44 -0800 (PST) X-Received: by 2002:a02:c9cc:: with SMTP id c12mr1326478jap.116.1610397104214; Mon, 11 Jan 2021 12:31:44 -0800 (PST) Received: from xps13 ([2605:a601:a63a:4d01:c3c1:7008:ba35:96]) by smtp.gmail.com with ESMTPSA id w3sm494775ilk.17.2021.01.11.12.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 12:31:43 -0800 (PST) Date: Mon, 11 Jan 2021 15:31:42 -0500 From: Jeremy Cline To: Christian =?utf-8?B?S8O2bmln?= Cc: Huang Rui , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/ttm: Fix address passed to dma_mapping_error() in ttm_pool_map() Message-ID: <20210111203142.GA51463@xps13> References: <20210111164033.695968-1-jcline@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2021 at 09:21:48PM +0100, Christian König wrote: > Am 11.01.21 um 17:40 schrieb Jeremy Cline: > > check_unmap() is producing a warning about a missing map error check. > > The return value from dma_map_page() should be checked for an error, not > > the caller-provided dma_addr. > > > > Fixes: d099fc8f540a ("drm/ttm: new TT backend allocation pool v3") > > Signed-off-by: Jeremy Cline > > Good catch. Reviewed and pushed to drm-misc-fixes, should be in the -rc by > the weekend. > Great, many thanks! - Jeremy