Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2194500/?format=api
{ "id": 2194500, "url": "http://patchwork.ozlabs.org/api/patches/2194500/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260209075618.1683125-1-nichen@iscas.ac.cn/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260209075618.1683125-1-nichen@iscas.ac.cn>", "list_archive_url": null, "date": "2026-02-09T07:56:18", "name": "mtd: rawnand: cadence: Fix error check for dma_alloc_coherent() in cadence_nand_init()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "5324b0adcb22906aec3d2e4f3ce8fda754ace408", "submitter": { "id": 87422, "url": "http://patchwork.ozlabs.org/api/people/87422/?format=api", "name": "Chen Ni", "email": "nichen@iscas.ac.cn" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260209075618.1683125-1-nichen@iscas.ac.cn/mbox/", "series": [ { "id": 491473, "url": "http://patchwork.ozlabs.org/api/series/491473/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=491473", "date": "2026-02-09T07:56:18", "name": "mtd: rawnand: cadence: Fix error check for dma_alloc_coherent() in cadence_nand_init()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/491473/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2194500/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2194500/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=X1nYN1ZS;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4f8cY04hcdz1xtr\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 09 Feb 2026 18:59:26 +1100 (AEDT)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vpMAl-0000000EySb-41kA;\n\tMon, 09 Feb 2026 07:59:07 +0000", "from smtp81.cstnet.cn ([159.226.251.81] helo=cstnet.cn)\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1vpMAi-0000000EyQV-0WEg\n\tfor linux-mtd@lists.infradead.org;\n\tMon, 09 Feb 2026 07:59:05 +0000", "from localhost (unknown [124.16.138.129])\n\tby APP-03 (Coremail) with SMTP id rQCowAAnC+LAk4lpM8oPCA--.49114S2;\n\tMon, 09 Feb 2026 15:58:56 +0800 (CST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=Rta1MStdjF7dIudciyimSN2HIx4TXGMW268qhmXUBok=; b=X1nYN1ZSBTfqNO\n\t0tf4INPdDWT0JYKfPyli7KWxPsjcZcknYQP8KotBcg7PGr7OcvIHAJyf/3TwECsi/uNqojyOmugA1\n\tJV6lJqJP4+259qistebx9h8+DqgWkVwciN+1RE8EbXJBdz6LYoJsrKGI+30Yj3QXFUS1/hhoVLZsD\n\tXB64ZNFj9vWZ1OECe9mvIKp34ijmpgET/OpHdrAhnEQf9Oeem9SffyTduc6HEx3Gi+dUBYpWVO4kJ\n\tDY6JiFpaP85BDQuQOthD63horgFyYIfF+IwRcUdsrYeSEXq3ospMEXMdf8zqETp3Q0BJliVehhUH4\n\trVJDUGjwtjou25wznl9g==;", "From": "Chen Ni <nichen@iscas.ac.cn>", "To": "miquel.raynal@bootlin.com,\n\trichard@nod.at,\n\tvigneshr@ti.com,\n\tniravkumarlaxmidas.rabara@altera.com,\n\talok.a.tiwari@oracle.com,\n\tpiotrs@cadence.com", "Cc": "linux-mtd@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org,\n\tChen Ni <nichen@iscas.ac.cn>", "Subject": "[PATCH] mtd: rawnand: cadence: Fix error check for\n dma_alloc_coherent() in cadence_nand_init()", "Date": "Mon, 9 Feb 2026 15:56:18 +0800", "Message-Id": "<20260209075618.1683125-1-nichen@iscas.ac.cn>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "X-CM-TRANSID": "rQCowAAnC+LAk4lpM8oPCA--.49114S2", "X-Coremail-Antispam": "1UD129KBjvdXoW7GryxCryDCr4kZw45CryrCrg_yoWDurgE9r\n\t45uFy8CF1DC3sFkwnakr48JFy2y34jgr1jgrnYqF4rtay3tw10q34DZws7u3W8X3Z3JF13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ichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260208_235904_539231_9B96B117 ", "X-CRM114-Status": "UNSURE ( 9.24 )", "X-CRM114-Notice": "Please train this message.", "X-Spam-Score": "-2.6 (--)", "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: Fix wrong variable used for error checking after\n dma_alloc_coherent()\n call. The function checks cdns_ctrl->dma_cdma_desc instead of\n cdns_ctrl->cdma_desc,\n which could lead to incorrect error handling.\n Content analysis details: (-2.6 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low\n trust\n [159.226.251.81 listed in list.dnswl.org]\n 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The\n query to Validity was blocked. See\n https://knowledge.validity.com/hc/en-us/articles/20961730681243\n for more information.\n [159.226.251.81 listed in\n sa-trusted.bondedsender.org]\n 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n Validity was blocked. See\n https://knowledge.validity.com/hc/en-us/articles/20961730681243\n for more information.\n [159.226.251.81 listed in sa-accredit.habeas.com]\n 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to\n Validity was blocked. See\n https://knowledge.validity.com/hc/en-us/articles/20961730681243\n for more information.\n [159.226.251.81 listed in\n bl.score.senderscore.com]\n -0.0 SPF_HELO_PASS SPF: HELO matches SPF record\n -0.0 SPF_PASS SPF: sender matches SPF record\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "Fix wrong variable used for error checking after dma_alloc_coherent()\ncall. The function checks cdns_ctrl->dma_cdma_desc instead of\ncdns_ctrl->cdma_desc, which could lead to incorrect error handling.\n\nFixes: ec4ba01e894d (\"mtd: rawnand: Add new Cadence NAND driver to MTD subsystem\")\nSigned-off-by: Chen Ni <nichen@iscas.ac.cn>\n---\n drivers/mtd/nand/raw/cadence-nand-controller.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/mtd/nand/raw/cadence-nand-controller.c b/drivers/mtd/nand/raw/cadence-nand-controller.c\nindex 99135ec23010..d53b35a8b3cb 100644\n--- a/drivers/mtd/nand/raw/cadence-nand-controller.c\n+++ b/drivers/mtd/nand/raw/cadence-nand-controller.c\n@@ -3133,7 +3133,7 @@ static int cadence_nand_init(struct cdns_nand_ctrl *cdns_ctrl)\n \t\t\t\t\t\t sizeof(*cdns_ctrl->cdma_desc),\n \t\t\t\t\t\t &cdns_ctrl->dma_cdma_desc,\n \t\t\t\t\t\t GFP_KERNEL);\n-\tif (!cdns_ctrl->dma_cdma_desc)\n+\tif (!cdns_ctrl->cdma_desc)\n \t\treturn -ENOMEM;\n \n \tcdns_ctrl->buf_size = SZ_16K;\n", "prefixes": [] }