Message ID | 20200209163356.6439-2-digetx@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <SRS0=C2jR=35=vger.kernel.org=dmaengine-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC082924 for <patchwork-dmaengine@patchwork.kernel.org>; Sun, 9 Feb 2020 16:42:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CB1DC20820 for <patchwork-dmaengine@patchwork.kernel.org>; Sun, 9 Feb 2020 16:42:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NunZwNi8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727698AbgBIQlU (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Sun, 9 Feb 2020 11:41:20 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:35192 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727761AbgBIQlT (ORCPT <rfc822;dmaengine@vger.kernel.org>); Sun, 9 Feb 2020 11:41:19 -0500 Received: by mail-lf1-f67.google.com with SMTP id z18so2500593lfe.2; Sun, 09 Feb 2020 08:41:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pIr+hEI5jiVDIpgzntOp1SJ5U4uzX7Mt42pGHqVvxOQ=; b=NunZwNi8jqSHedUzdE41W+JuiPPI6UoCKu9MBG1lzuIqpOm9r0YwxbsStsODf1aNQh es5AvyGSTCBijsA1ikZycPMt5En8xz0JcBLe0vv+rdm10/+842TraNQDjm6Nppb1T9iz U/JZIF4YhA75lmBEtyTkyS0obizOiHmU/6PNZWs6favPuRdKeDhFbJDF4mzvSxPxDOxB azjIvop3/Jo82q5GTGSi5nKO7DYtOF20CJnX2JyV6Vs4sJZ9ROPa+2s8A6rsQ632V44p ZOmXoV1/Au2Fo+jHl2wwpz1hXQThzCzcptfEviZMLW/rImCjYNNPHxLci1XPypAyXBtO T/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pIr+hEI5jiVDIpgzntOp1SJ5U4uzX7Mt42pGHqVvxOQ=; b=U8tUehMv0lMynInVm4N+k3ilMZuIf++i7q+bK5NCo2o9N3ulzxkuIqgULhKesE+2nH 6nmmJi38WJK74iyyVAXXp0gcxmsLeuVfBsDEoet0RtJ4WQsLYYNE//CIbhjHUDomgP9w jUmwu/Cy8F/DBhe7Y0po3hv2zjwvLkiWVmVY8r4WB+ABVK0kKfdpWen5D+S3BOPMXWsp 0JvRe67hje6npT1XbqIYFo8BXbvjX8WDsDh0/2hswOdey82XbH4CP4mRod9WPzNqTUPl SpnXC9jdp71jGQ7MJS9VxMUUZHkRWgl153RhGu50pzaLcfcnibiqCotch0bBImmpf7qm srXA== X-Gm-Message-State: APjAAAWIvHVO5mwVIX0NzxnKDZKG+Kgz+sZFnnOKfWNc01T/4oRIm6Qg kUJsYJwDdty0WeJKm8e5mcg= X-Google-Smtp-Source: APXvYqySUlsdDslSk/IfFxU6LCFrS/eb2BbW+cx0+iGs6bPiNjSdDtTkTajzAGwG+vRKP+lqPahKPg== X-Received: by 2002:a19:a07:: with SMTP id 7mr4078896lfk.66.1581266477509; Sun, 09 Feb 2020 08:41:17 -0800 (PST) Received: from localhost.localdomain (79-139-233-37.dynamic.spd-mgts.ru. [79.139.233.37]) by smtp.gmail.com with ESMTPSA id g21sm4941826ljj.53.2020.02.09.08.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Feb 2020 08:41:16 -0800 (PST) From: Dmitry Osipenko <digetx@gmail.com> To: Laxman Dewangan <ldewangan@nvidia.com>, Vinod Koul <vkoul@kernel.org>, Dan Williams <dan.j.williams@intel.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= <mirq-linux@rere.qmqm.pl> Cc: dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 01/19] dmaengine: tegra-apb: Fix use-after-free Date: Sun, 9 Feb 2020 19:33:38 +0300 Message-Id: <20200209163356.6439-2-digetx@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200209163356.6439-1-digetx@gmail.com> References: <20200209163356.6439-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org |
Series |
NVIDIA Tegra APB DMA driver fixes and improvements
|
expand
|
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 3a45079d11ec..319f31d27014 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c @@ -756,10 +756,6 @@ static int tegra_dma_terminate_all(struct dma_chan *dc) bool was_busy; spin_lock_irqsave(&tdc->lock, flags); - if (list_empty(&tdc->pending_sg_req)) { - spin_unlock_irqrestore(&tdc->lock, flags); - return 0; - } if (!tdc->busy) goto skip_dma_stop;