Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* Patch "dmaengine: fsl-edma: Add error handling for devm_kasprintf" has been added to the 6.18-stable tree
@ 2026-08-25  8:07 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2026-08-25  8:07 UTC (permalink / raw)
  To: Frank.Li, gregkh, griffin, imx, stable, vkoul; +Cc: stable-commits


This is a note to let you know that I've just added the patch titled

    dmaengine: fsl-edma: Add error handling for devm_kasprintf

to the 6.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dmaengine-fsl-edma-add-error-handling-for-devm_kasprintf.patch
and it can be found in the queue-6.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


From bf1af4dfdc017dfe989c0dbcf0e608dc95f1d2cb Mon Sep 17 00:00:00 2001
From: Griffin Kroah-Hartman <griffin@kroah.com>
Date: Mon, 6 Jul 2026 16:57:06 +0200
Subject: dmaengine: fsl-edma: Add error handling for devm_kasprintf

From: Griffin Kroah-Hartman <griffin@kroah.com>

commit bf1af4dfdc017dfe989c0dbcf0e608dc95f1d2cb upstream.

Add error handling statement to fls_edma3_irq_init() for the
devm_kasprintf call.

Assisted-by: gkh_clanker_2000
Cc: stable <stable@kernel.org>
Cc: Frank Li <Frank.Li@nxp.com>
Cc: Vinod Koul <vkoul@kernel.org>
Cc: imx@lists.linux.dev
Signed-off-by: Griffin Kroah-Hartman <griffin@kroah.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/2026070605-frying-fling-b9c5@gregkh
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/dma/fsl-edma-main.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/dma/fsl-edma-main.c
+++ b/drivers/dma/fsl-edma-main.c
@@ -414,6 +414,8 @@ static int fsl_edma3_irq_init(struct pla
 
 		errirq_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s-err",
 					     dev_name(&pdev->dev));
+		if (!errirq_name)
+			return -ENOMEM;
 
 		ret = devm_request_irq(&pdev->dev, fsl_edma->errirq, fsl_edma3_err_handler_shared,
 				       0, errirq_name, fsl_edma);


Patches currently in stable-queue which might be from griffin@kroah.com are

queue-6.18/mailbox-mchp-ipc-sbi-add-null-check-for-devm_kasprintf.patch
queue-6.18/rndis_host-add-overflow-check-in-rndis_rx_fixup.patch
queue-6.18/dmaengine-fsl-edma-add-error-handling-for-devm_kasprintf.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-25  8:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-25  8:07 Patch "dmaengine: fsl-edma: Add error handling for devm_kasprintf" has been added to the 6.18-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox