This is a note to let you know that I've just added the patch titled net: stmmac: fix errno when create_singlethread_workqueue() fails to the 6.1-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: net-stmmac-fix-errno-when-create_singlethread_workqueue-fails.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 2cb815cfc78b137ee38bcd65e7c955d6cc2cc250 Mon Sep 17 00:00:00 2001 From: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx> Date: Wed, 14 Dec 2022 16:01:17 +0800 Subject: net: stmmac: fix errno when create_singlethread_workqueue() fails From: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx> commit 2cb815cfc78b137ee38bcd65e7c955d6cc2cc250 upstream. We should set the return value to -ENOMEM explicitly when create_singlethread_workqueue() fails in stmmac_dvr_probe(), otherwise we'll lose the error value. Fixes: a137f3f27f92 ("net: stmmac: fix possible memory leak in stmmac_dvr_probe()") Signed-off-by: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx> Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx> Link: https://lore.kernel.org/r/20221214080117.3514615-1-cuigaosheng1@xxxxxxxxxx Signed-off-by: Paolo Abeni <pabeni@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -7097,6 +7097,7 @@ int stmmac_dvr_probe(struct device *devi priv->wq = create_singlethread_workqueue("stmmac_wq"); if (!priv->wq) { dev_err(priv->device, "failed to create workqueue\n"); + ret = -ENOMEM; goto error_wq_init; } Patches currently in stable-queue which might be from cuigaosheng1@xxxxxxxxxx are queue-6.1/net-stmmac-fix-errno-when-create_singlethread_workqueue-fails.patch queue-6.1/rtc-st-lpc-add-missing-clk_disable_unprepare-in-st_r.patch queue-6.1/crypto-img-hash-fix-variable-dereferenced-before-che.patch queue-6.1/pinctrl-thunderbay-fix-possible-memory-leak-in-thund.patch queue-6.1/asoc-amd-acp-fix-possible-uaf-in-acp_dma_open.patch queue-6.1/rtc-pic32-move-devm_rtc_allocate_device-earlier-in-p.patch queue-6.1/lib-fonts-fix-undefined-behavior-in-bit-shift-for-ge.patch queue-6.1/scsi-snic-fix-possible-uaf-in-snic_tgt_create.patch queue-6.1/alsa-mts64-fix-possible-null-ptr-defer-in-snd_mts64_.patch queue-6.1/apparmor-fix-a-memleak-in-multi_transaction_new.patch queue-6.1/remoteproc-sysmon-fix-memory-leak-in-qcom_add_sysmon.patch queue-6.1/staging-vme_user-fix-possible-uaf-in-tsi148_dma_list.patch queue-6.1/drm-ttm-fix-undefined-behavior-in-bit-shift-for-ttm_.patch queue-6.1/net-stmmac-fix-possible-memory-leak-in-stmmac_dvr_pr.patch queue-6.1/fbdev-ep93xx-fb-add-missing-clk_disable_unprepare-in.patch queue-6.1/crypto-ccree-remove-debugfs-when-platform_driver_reg.patch queue-6.1/mtd-core-fix-possible-resource-leak-in-init_mtd.patch