[{"id":3682688,"web_url":"http://patchwork.ozlabs.org/comment/3682688/","msgid":"<87y0i8h982.fsf@bootlin.com>","list_archive_url":null,"date":"2026-04-27T12:35:25","subject":"Re: [PATCH v2 3/3] mtd: maps: vmu-flash: Fix NULL pointer\n dereference in initialization","submitter":{"id":73368,"url":"http://patchwork.ozlabs.org/api/people/73368/","name":"Miquel Raynal","email":"miquel.raynal@bootlin.com"},"content":"On 27/04/2026 at 13:47:50 +02, Florian Fuchs <fuchsfl@gmail.com> wrote:\n\n> The mtd_info contains a struct device, which must be linked to its\n> parent. Without this, the initialization of the MTD fails with a NULL\n> pointer dereference.\n>\n> Signed-off-by: Florian Fuchs <fuchsfl@gmail.com>\n> ---\n\nFor how long as this been broken? Is it really used?\n\nAnyway, also here you will need to Cc stable and add a fixes tag.\n\nThanks,\nMiquèl","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=wqfVIZD1;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=ghOXWGou;\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 4g43211VCdz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 22:35:37 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHLBU-0000000GvBK-43or;\n\tMon, 27 Apr 2026 12:35:32 +0000","from smtpout-02.galae.net ([185.246.84.56])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHLBP-0000000GvAO-3GNj\n\tfor linux-mtd@lists.infradead.org;\n\tMon, 27 Apr 2026 12:35:28 +0000","from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-02.galae.net (Postfix) with ESMTPS id 0FF021A3442;\n\tMon, 27 Apr 2026 12:35:26 +0000 (UTC)","from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id D41F5600D1;\n\tMon, 27 Apr 2026 12:35:25 +0000 (UTC)","from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 7A8D0107281E7;\n\tMon, 27 Apr 2026 14:35:23 +0200 (CEST)"],"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:References\n\t:In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=E7yKTcQSYCle1G1+d7H7PtmIp7RD4k7XmtQ1T2vXh6o=; b=wqfVIZD1SxZMLh\n\tCznERcw3SmVPo3iNCf0mbXoDQgj15VZuluhsjzeOhqdeOYpp/cWYyZrR+Yq36tj0iQCbtbDxOuVx4\n\tnOBHIvJRTxFixGOePe20hwZXenuc/dxNeCiinUuNfss5SZ6g9fM74waErHF530xOPBFZKZiaS4fYy\n\tbDvwwxQy/0KGTg9uZpWa6K0HkDvE+QfHSvfgcLWUM3hOQWGEdGQ0dV1+pUxin6oARJDykqBMtyGxp\n\tRs12R3fbisZRzGhtZNLd0CInSY3EPZvh44/BwZNLK8vmKSGAJG8CiM+au8W9nenfRYFGvAwC0o1Tf\n\tykA/csIDhZA/vgelnfjA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1777293325; h=from:subject:date:message-id:to:cc:mime-version:content-type:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=uKFfXQaezyTz26nsftWjY8Ac+CXjHCjEYGqkt7gYjo0=;\n\tb=ghOXWGounxDetPhdU7XY9YNSDqNYMiii5lomtJUfnC/ed5CDqeMiIzGysSvLvemgn5Sk7v\n\tJFfAtexSdyRdebFrAe3+yN4dG/asDlmPaxSu/BYoBRlSRiKY7ciRiAbVt19gfTbscAeM56\n\tC2fu5xLIKeOlYDpRcb2qwVeQsQR5vk/OiZTlFPm3sk0O3nMSyrmCXB1tFavEoMsdczBtle\n\tFov73CytapRE1ofZZq6mrBnu6RQ2s0L3gZ4S0phBYu+znYd+vUxMkoEdWwIPJtL12Fqog1\n\tjco7PQtWLho06274sENNyStVGGST+DAmNjyVWPrbaEjbka46RmcWgF3f+Katew=="],"From":"Miquel Raynal <miquel.raynal@bootlin.com>","To":"Florian Fuchs <fuchsfl@gmail.com>","Cc":"Richard Weinberger <richard@nod.at>,  Vignesh Raghavendra\n <vigneshr@ti.com>,  linux-mtd@lists.infradead.org,\n  linux-sh@vger.kernel.org,  linux-kernel@vger.kernel.org,  Rich Felker\n <dalias@libc.org>,  John Paul Adrian Glaubitz\n <glaubitz@physik.fu-berlin.de>,  Artur Rojek <contact@artur-rojek.eu>","Subject":"Re: [PATCH v2 3/3] mtd: maps: vmu-flash: Fix NULL pointer\n dereference in initialization","In-Reply-To":"<20260427114750.2480900-4-fuchsfl@gmail.com> (Florian Fuchs's\n\tmessage of \"Mon, 27 Apr 2026 13:47:50 +0200\")","References":"<20260427114750.2480900-1-fuchsfl@gmail.com>\n\t<20260427114750.2480900-4-fuchsfl@gmail.com>","User-Agent":"mu4e 1.12.7; emacs 30.2","Date":"Mon, 27 Apr 2026 14:35:25 +0200","Message-ID":"<87y0i8h982.fsf@bootlin.com>","MIME-Version":"1.0","X-Last-TLS-Session-Version":"TLSv1.3","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260427_053527_945941_81C8619A ","X-CRM114-Status":"UNSURE (   5.87  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.1 (--)","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:  On 27/04/2026 at 13:47:50 +02,\n Florian Fuchs <fuchsfl@gmail.com>\n    wrote: > The mtd_info contains a struct device,\n which must be linked to its\n    > parent. Without this, the initialization of the MTD fails with a NULL >\n    pointer dereference. > > Signed-off-by: Florian Fuchs <fu [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\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=\"utf-8\"","Content-Transfer-Encoding":"base64","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"}}]