From patchwork Sun Jan 7 10:02:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 18791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp471420dyq; Sun, 7 Jan 2024 02:02:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4sg6ByaBS5RVnCUjSsw1apAfrfhZzdtU7H6dXwRMCdsadFVXOH8o82FOQ+JYEqQ+9kGaA X-Received: by 2002:a17:902:9001:b0:1d4:a327:f6af with SMTP id a1-20020a170902900100b001d4a327f6afmr2279466plp.38.1704621751619; Sun, 07 Jan 2024 02:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704621751; cv=none; d=google.com; s=arc-20160816; b=QzGdxAHm/sbo0kzU5YcNnpQ3fBKPni8XCIxpOFCSOBn+Fpx0jCZE5lMmp4zRE5Il4X q4E8NwdMGIqaXmwez70VyuUNtL9rZUTiB4il5//MF930M+XZRwePJZTfm2UnAcpx81uE icx5kMNNukahg5wFzDwlwurXpkahH3071/WRVe2qJT0WvYGiLAwoEV0buk4yI5jdAiDS 1gEKvN6hvpTFo8RrzOuPNk141zDu2p0F4FBv3XiCG2E0XrUzydlEgwGD0/InJqwO2twv d7ooMer7Lla5SRR/zAFjhUNcFEmwB8FJuQlmHJWTqiyVhx/me7DBuSl64D8lxUq8pC00 mfZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8rP1vEXSeP3Uf/viFGY7Jcv0EE73WL/nsI+Y9nJQRVU=; fh=dNnfSg18Ptr+OweKY4QKN/WRiJyhS4OXToJzVPS7qUI=; b=qczmKbB9Z/5loorlQiT9d4kaMu9sves1/CNDLF16zrRXALiOU7y5bUIpDsBlnohe1Q 0Qh7KPx9gK/HI7F8G9EN+iF6eg4vhStBzLtERJUBlmNNUoTk/qE3U2zWazfgESQDZl6F qSsPPn6kXEk5292BU23pSL1ub2OD6nNAIRWzPAhhV8B444ERZb24QfwZKkw+sm31YOhW f5oN6cOnUPEDwydsskxPdbyCZRPGrICPVY6kEfud8mYyVwlMPdJZnaaitqnx+dfudS+L 64KyszY2y4+nSPCDBaWBE0vxtAtDLONxw7thc93IPgPZ7cPzX0JOxPOSD0SeCYzoqKXQ xOFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=MraMq4LM; spf=pass (google.com: domain of linux-kernel+bounces-18828-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18828-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iz4-20020a170902ef8400b001d41bd18015si4190056plb.168.2024.01.07.02.02.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 02:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18828-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=MraMq4LM; spf=pass (google.com: domain of linux-kernel+bounces-18828-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18828-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7D8FA282791 for ; Sun, 7 Jan 2024 10:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19F1812E4E; Sun, 7 Jan 2024 10:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="MraMq4LM" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.smtpout.orange.fr (smtp-29.smtpout.orange.fr [80.12.242.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AAD712B78 for ; Sun, 7 Jan 2024 10:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Received: from pop-os.home ([92.140.202.140]) by smtp.orange.fr with ESMTPA id MPysrRwtE9WXyMPysrZ562; Sun, 07 Jan 2024 11:02:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1704621731; bh=8rP1vEXSeP3Uf/viFGY7Jcv0EE73WL/nsI+Y9nJQRVU=; h=From:To:Cc:Subject:Date; b=MraMq4LMbzLGfgWPcZyz9W+JAq/TnmdWHpMmmTf5zHQkGHtxf3wkCqR02yz/5NaWC TmwY/8EBB/RKuccHwX0bEDkaNCiLuNvP5ZVKMKU/m2Pjp7rK3BUF/i+ez60oWtAE6S bdzZR64yBoU8DjX4gm35eMxEiXEroFDdo5SG3b86sRFEt7wqmtsiFWu1K/1FOAfJ9m 1sTUPGOQCMRvDyU+NaxY5OgrZa6lCau8iUFK1AUYMcqxWnWqDNRDQbbwoBiuvvRGfj aeWcbJL490dzeVR0HYuzTf9iEesnEYs/eUWfEuOGCJYVrz5oR772sQJqln6XfYzlWp dttaO8ag7RTDg== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 07 Jan 2024 11:02:11 +0100 X-ME-IP: 92.140.202.140 From: Christophe JAILLET To: vkoul@kernel.org, jiaheng.fan@nxp.com, peng.ma@nxp.com, wen.he_1@nxp.com Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 0/3] dmaengine: fsl-qdma: Fix some error handling paths Date: Sun, 7 Jan 2024 11:02:02 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787425457908506531 X-GMAIL-MSGID: 1787425457908506531 The first 2 patches are bug fixes related to missing dma_free_coherent() either in the remove function or in the error handling path of the probe. They are compile tested only. So review with care. The 3rd patch is only a clean up. Christophe JAILLET (3): dmaengine: fsl-qdma: Fix a memory leak related to the status queue DMA dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA dmaengine: fsl-qdma: Remove a useless devm_kfree() drivers/dma/fsl-qdma.c | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-)