Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp720178pxb; Wed, 27 Oct 2021 11:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFbuV4XMYI408ZfVOtbBasQbnhex+3MhjqZNYEaTyyooOLq5nE6VG1yLCE4QLVpNC6+NIK X-Received: by 2002:a50:d8cf:: with SMTP id y15mr46894809edj.66.1635357649463; 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=WxpDkuvDr1u7ummPkm+3Blt5aYwWgc4RAAD1bd9iiU6rPqaGUFEY+/eZcbaQZEZnq/ F0sUtL0SpDv64ZpoPfz5wj1tzud257U2vsw75Z++QYWS1NqncbcLo5xf6LRHXUu3PDyH feSf39iNfk0ODDAEhmi/oPhhzNSrELRgGghV8FBdFVle/IM9MTJzHTbYsEVlJgTsUndy qxSRaOlyTxLXlejeyceTUXCN9ACBn2ibDEotnJvmCiDSHqGV8zoL56LOHfo2lgSW+nDv wGdKWMs3wG5Hg/J7u9itzSbZPQRJ43Cme26Fz03lZ5hwQL1CC+cZHkYYavzRiYBlQ2wN EXEQ== 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=g92cF+PG1Y8ft/dPCWjVaGnIySgCFpdj/dtBjMg5QSA=; b=YjnXN9E1NE0MUkCeavsq5hztGOb4d7KjILfQwSTBGf3pIyX8BaaP2hrfG6/4bFi/49 4oUTto4koi5FYsXLy6Ejks3MUkhObteIRmgjvnQyP/neH5SItTS4GVhj89vgVwWqOmEy YNGpvo9Gsksma7b5Qv5/2bO/DvZswJc5SYqCVqXrtpfktHVo8RmToHxCKcj542jh13hl pCSjxIT1OTRqSHKT9Fh7olkMHqi0ewqxkMQtGiN0pw2UuwE0yk4aBW13MOSTENBhnzxS iPWQktozDZgASMiLzMJTfGxr1AGRFooO7rGeNy4cbteY4MqEnhDC3/yk6PA5grgORMNn K6eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Rpc+Aw+2; 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 m1si841074ejr.261.2021.10.27.11.00.25; 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=Rpc+Aw+2; 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 S236809AbhJ0F7D (ORCPT + 99 others); Wed, 27 Oct 2021 01:59:03 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46446 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231297AbhJ0F7A (ORCPT ); Wed, 27 Oct 2021 01:59:00 -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 19R5uYYG105836; Wed, 27 Oct 2021 00:56:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1635314194; bh=g92cF+PG1Y8ft/dPCWjVaGnIySgCFpdj/dtBjMg5QSA=; h=From:To:CC:Subject:Date; b=Rpc+Aw+2iZ5dXMpDvawSE4h1+h5+1i+caYpA48iQo+UxoSE4Odnbf3V5D9VwD2JJc 8SKO4pwsfJeUcPi6PeULQAcYBbdSb1rL9OJ+ZG6dFBF3CJBQ3venDBLegUcHOFA4B8 A2zI9X844kFBzQDojQN/sjp/N9hKeBiqFgrzei0Y= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 19R5uY2C003978 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Oct 2021 00:56:34 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE113.ent.ti.com (10.64.6.34) 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:56:34 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) 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:56:34 -0500 Received: from a0393678-lt.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 19R5uRPK126251; Wed, 27 Oct 2021 00:56:31 -0500 From: Kishon Vijay Abraham I To: Peter Ujfalusi , Vinod Koul CC: , , Vignesh Raghavendra , Kishon Vijay Abraham I Subject: [RESEND PATCH v2 0/2] dmaengine: ti: k3-udma: Fix NULL pointer dereference error Date: Wed, 27 Oct 2021 11:26:23 +0530 Message-ID: <20211027055625.11150-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 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