Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp719766pxb; Wed, 27 Oct 2021 11:02:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5FPDHP1ossVmPsj5eG9ekfitDvjBtQje5ACa65mpNFj/A+6TtczuCJSmMgCRdWagEvl19 X-Received: by 2002:a05:6402:17c4:: with SMTP id s4mr46182260edy.253.1635357649711; Wed, 27 Oct 2021 11:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635357649; cv=none; d=google.com; s=arc-20160816; b=qULJNQXQMh9nl/gOW9004fFShwoQHKn8uYGkpAeQkUKkK77CRkux3rbPFcZDd2MsXt wMhNOpV3vEC2CznDxhJhctB05OdV7JfVEHesmKlFi3Mur6uQdZqXEerznE4pU3gbIKPY ARAWWt05vJyeXo2GcQcgfN2TLAGtCy7HLz05auT++cpNiLxzhQFpzNYbT3zTV3njFq03 DbIEY/UEM8lw8YbLE+xa20DfmGVYXV2umTulYPhjc3imFgN6hA9+zdz6MVmb/e6lzu7v PBUPcQwV62lmU5PwN5Z/lWc0BO/yWQw+lOnalIPzlM+8Dx/soyeE2clvjChkpfgxKKNm +E9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=g92cF+PG1Y8ft/dPCWjVaGnIySgCFpdj/dtBjMg5QSA=; b=qQKhLAeGmwcMhnJwQe14ZFkGkX3+2ENyHT0ueS+LVZSuDTpQdPN2Gh4E8cRb9h/QTD uv7QsPXGDK7nudIUDVA/SsY2pOtXoExTs4cjhb3caJe4fhFPmAbc5OU2sbMTpTuSiEhj AP6PHFUb8YnjE3LDYEwBdR38+qrYw0IXuFtv65l/opcF7Lqgim4aOp1qy9EFLOP4Ugpf 505Io62Y1muOChgih85vhZb9KHhmdRZkRKxS4Tx58KQeeI29Hasnxi+HV1/Bd2vLiCL1 TuiKeczA+mYGQG6aCa0mL0I8Vq6i3CoTmtiDgU0ILYen/C35rRZJTxUQ/F3P+inurRuB Xi8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gYlPBXCh; 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 y2si591108edq.399.2021.10.27.11.00.24; Wed, 27 Oct 2021 11:00:49 -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=gYlPBXCh; 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 S239784AbhJ0Fzf (ORCPT + 99 others); Wed, 27 Oct 2021 01:55:35 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:45750 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236625AbhJ0Fze (ORCPT ); Wed, 27 Oct 2021 01:55:34 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 19R5r7KX104869; Wed, 27 Oct 2021 00:53:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635313987; bh=g92cF+PG1Y8ft/dPCWjVaGnIySgCFpdj/dtBjMg5QSA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gYlPBXChwCxqxfiAU78qeerrApf/jmGZLgnB9SvpBAKV9GHhEaIPHiUrJqKxlChRc J1MjKkG+5VjLA/avxFO7mW18QaTGkfqhUWIOzaFoNiUtGICacYEVzIOyx8rxeBkWPZ +d2nZIyTDRh6FlVk1PZIXJHit7nkWIN/yie/f/fA= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 19R5r7kp130663 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Oct 2021 00:53:07 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 27 Oct 2021 00:53:07 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE104.ent.ti.com (157.170.170.34) 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; Wed, 27 Oct 2021 00:53:07 -0500 Received: from a0393678-lt.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 19R5qvNP100051; Wed, 27 Oct 2021 00:53:04 -0500 From: Kishon Vijay Abraham I To: Peter Ujfalusi , Vinod Koul CC: , , Vignesh Raghavendra , Kishon Vijay Abraham I Subject: [PATCH v2 0/2] dmaengine: ti: k3-udma: Fix NULL pointer dereference error Date: Wed, 27 Oct 2021 11:22:52 +0530 Message-ID: <20211027055254.10912-3-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211027055254.10912-1-kishon@ti.com> References: <20211027055254.10912-1-kishon@ti.com> 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 in BCDMA (Block copy DMA) but the issue is applicable in PKTDMA as well. 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 Kishon Vijay Abraham I (2): dmaengine: ti: k3-udma: Fix NULL pointer dereference error for BCDMA dmaengine: ti: k3-udma: Fix NULL pointer dereference error for PKTDMA drivers/dma/ti/k3-udma.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) -- 2.17.1