Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1672933pxb; Sat, 30 Oct 2021 20:27:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGEa4ilxJwEVABs/rqhwF0ACWoXvpUsephFTx/fE83vqws1+6QV9ytJA1FWAP6fvSiL0JG X-Received: by 2002:a05:6e02:18cb:: with SMTP id s11mr14340665ilu.82.1635650872285; Sat, 30 Oct 2021 20:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635650872; cv=none; d=google.com; s=arc-20160816; b=IJVpbvngP2eKTQb5jlgRm86YkdM+9fUmev0Wm5eVQp1NEOmNMmb+7BL1ncUiJ/HfhG JTNGJhZYVUBItQPFpjk8G446U9tjGmLRgSCIQLgCs6pnLctDMkkt5GyyN4YoJl/XiKDz RMtMmhNo1WGMWprRKCrvkSad3uD1+2NueMxqlH+NpIYQG4c04mPqk+rTu+V/BsotMIFO R4ZMElgEBxB22yLBaot//MNJRopGhq2tNOIbF1zaPHqnu+UcHDL1Jiij3t+4gaXhZGHK T44pju3PUnIFmBT1zLoQv34tjnkJxj6npp9ke9zjlQBxnk/vieKKcSZyknbkp2yVFsW/ 9yZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=mDiH3KIIJnrJ4m8eBhF/73VpP13wJusqmGq7QXE/f2k=; b=Gh3W2JpQ0GAahTbqYDmPU8GC/Fgo9acRFlnOY5P6FFf3/kMMHHM/eSW6BudA1OlC8m F5NJMec29CMZr+70k7PIFl5gqFUy8XnwXd37/4+o9acftZ0mF1+jbT6otjZoVF5gvg2l kpFVIaF8TeX06PQrVM22DVlajAl/EklqX/D8Xx2euo+AWSqSBnSn1ae8PYcrGXrsHsQA U186h+vzJvO+YlO+JG3S5nVGUUiA5tUDLHvbjK8N6LPWuYDjapwbTLK2u0Au4q/1YpT+ 1T4JFUrXVPmYD342e5Jl/nkNLJy3WXYhriOenMzhb5ViMbBUn1+VKDbRv7HezEaI5YGK NLfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=y7W0G2AQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si15644732ill.121.2021.10.30.20.27.40; Sat, 30 Oct 2021 20:27:52 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=y7W0G2AQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbhJaD0t (ORCPT + 99 others); Sat, 30 Oct 2021 23:26:49 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:49294 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbhJaD0s (ORCPT ); Sat, 30 Oct 2021 23:26:48 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 19V3OFJD018070; Sat, 30 Oct 2021 22:24:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635650655; bh=mDiH3KIIJnrJ4m8eBhF/73VpP13wJusqmGq7QXE/f2k=; h=From:To:CC:Subject:Date; b=y7W0G2AQ7pZQDwkGSrbKqlHA5aAfvjrOba1vLvcXqAMqKw4Meo4h7KIgifHtckY3C /68Vkk9Djy9WkTu7YYtHfmLZ6eQjaiSEhY/YEuw09rkhngLTzj4qwiguLzvB8I511e 7c+camqSd40PK1xeJM+VrinlHaUTeDIgplPjFV5s= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 19V3OFBW108783 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Oct 2021 22:24:15 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 30 Oct 2021 22:24:15 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Sat, 30 Oct 2021 22:24:15 -0500 Received: from a0393678-lt.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 19V3OCwK084685; Sat, 30 Oct 2021 22:24:12 -0500 From: Kishon Vijay Abraham I To: Peter Ujfalusi , Vinod Koul CC: , , Vignesh Raghavendra , Kishon Vijay Abraham I Subject: [PATCH v4 0/2] dmaengine: ti: k3-udma: Fix NULL pointer dereference error Date: Sun, 31 Oct 2021 08:54:09 +0530 Message-ID: <20211031032411.27235-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NULL pointer de-reference error was observed when all the PCIe endpoint functions (22 function in J721E) request a DMA channel. The issue was specfically observed when using mem-to-mem copy. Changes from v3: 1) Fix commit subject 2) Add "Acked-by: Peter Ujfalusi " and cc'ed stable Changes from v2: 1) Fix commit subject and commit log to mention bchan/rchan/tchan to NULL suggested by Peter. Changes from v1: 1) Split the patch for BCDMA and PKTDMA separately 2) Fixed the return value of udma_get_rflow() to 0. 3) Removed the fixes tag as the patches does not directly apply to the commits. v1 => https://lore.kernel.org/r/20210209090036.30832-1-kishon@ti.com v2 => https://lore.kernel.org/r/20211027055625.11150-1-kishon@ti.com v3 => https://lore.kernel.org/r/20211029151251.26421-1-kishon@ti.com Kishon Vijay Abraham I (2): dmaengine: ti: k3-udma: Set bchan to NULL if a channel request fail dmaengine: ti: k3-udma: Set r/tchan or rflow to NULL if request fail drivers/dma/ti/k3-udma.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) -- 2.17.1