From ye.xingchen at zte.com.cn  Thu Nov 10 01:26:10 2022
From: ye.xingchen at zte.com.cn (ye.xingchen at zte.com.cn)
Date: Thu, 10 Nov 2022 17:26:10 +0800 (CST)
Subject: =?UTF-8?B?W1BBVENIXSBkbWFlbmdpbmU6IHVzZSBkZXZtX3BsYXRmb3JtX2dldF9hbmRfaW9yZW1hcF9yZXNvdXJjZSgp?=
Message-ID: <202211101726100208529@zte.com.cn>

From: Minghao Chi <chi.minghao at zte.com.cn>

Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.

Reported-by: Zeal Robot <zealci at zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao at zte.com.cn>
---
 drivers/dma/bcm2835-dma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c
index 630dfbb01a40..1547f528a58e 100644
--- a/drivers/dma/bcm2835-dma.c
+++ b/drivers/dma/bcm2835-dma.c
@@ -902,8 +902,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)

 	dma_set_max_seg_size(&pdev->dev, 0x3FFFFFFF);

-	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	base = devm_ioremap_resource(&pdev->dev, res);
+	base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
 	if (IS_ERR(base))
 		return PTR_ERR(base);

-- 
2.25.1


From yangyingliang at huawei.com  Wed Nov 16 23:06:36 2022
From: yangyingliang at huawei.com (Yang Yingliang)
Date: Thu, 17 Nov 2022 15:06:36 +0800
Subject: [PATCH] firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()
Message-ID: <20221117070636.3849773-1-yangyingliang@huawei.com>

In rpi_firmware_probe(), if mbox_request_channel() fails, the 'fw' will
not be freed through rpi_firmware_delete(), fix this leak by calling
kfree() in the error path.

Fixes: 1e7c57355a3b ("firmware: raspberrypi: Keep count of all consumers")
Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>
---
 drivers/firmware/raspberrypi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
index 4b8978b254f9..dba315f675bc 100644
--- a/drivers/firmware/raspberrypi.c
+++ b/drivers/firmware/raspberrypi.c
@@ -272,6 +272,7 @@ static int rpi_firmware_probe(struct platform_device *pdev)
 		int ret = PTR_ERR(fw->chan);
 		if (ret != -EPROBE_DEFER)
 			dev_err(dev, "Failed to get mbox channel: %d\n", ret);
+		kfree(fw);
 		return ret;
 	}
 
-- 
2.25.1



From jsavitz at redhat.com  Thu Nov 17 06:59:49 2022
From: jsavitz at redhat.com (Joel Savitz)
Date: Thu, 17 Nov 2022 10:59:49 -0400
Subject: [PATCH] firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()
In-Reply-To: <20221117070636.3849773-1-yangyingliang@huawei.com>
References: <20221117070636.3849773-1-yangyingliang@huawei.com>
Message-ID: <CAL1p7m6QBarQFV_oAFp0dirXQOBYSMN0XSVJ2i_WaKnCYWTbRg@mail.gmail.com>

On Thu, Nov 17, 2022 at 3:08 AM Yang Yingliang <yangyingliang at huawei.com> wrote:
>
> In rpi_firmware_probe(), if mbox_request_channel() fails, the 'fw' will
> not be freed through rpi_firmware_delete(), fix this leak by calling
> kfree() in the error path.
>
> Fixes: 1e7c57355a3b ("firmware: raspberrypi: Keep count of all consumers")
> Signed-off-by: Yang Yingliang <yangyingliang at huawei.com>
> ---
>  drivers/firmware/raspberrypi.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/firmware/raspberrypi.c b/drivers/firmware/raspberrypi.c
> index 4b8978b254f9..dba315f675bc 100644
> --- a/drivers/firmware/raspberrypi.c
> +++ b/drivers/firmware/raspberrypi.c
> @@ -272,6 +272,7 @@ static int rpi_firmware_probe(struct platform_device *pdev)
>                 int ret = PTR_ERR(fw->chan);
>                 if (ret != -EPROBE_DEFER)
>                         dev_err(dev, "Failed to get mbox channel: %d\n", ret);
> +               kfree(fw);
>                 return ret;
>         }
>
> --
> 2.25.1
>
>
> _______________________________________________
> linux-rpi-kernel mailing list
> linux-rpi-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-rpi-kernel
>

Acked-by: Joel Savitz <jsavitz at redhat.com>



From zbynek.spacek at axisfairfi.com  Tue Nov 22 00:55:34 2022
From: zbynek.spacek at axisfairfi.com (Zbynek Spacek)
Date: Tue, 22 Nov 2022 08:55:34 GMT
Subject: Silikonmischungen
Message-ID: <20221122074500-0.1.d.n6o.0.2ej0h5u7cu@axisfairfi.com>

Good morning,

do you need intermediates for processing, plastics (e.g. rubber) or silicone mixtures?

We provide a wide range of silicone rubbers with various properties, silicone mixtures from renowned manufacturers such as Wacker, Elastosil LR and dyes, stabilizers, primers and anti-adhesive additives.

We also produce technical silicone compounds with increased resistance to oils, resistant to high temperatures and water vapor, conductive and many more.

We provide fast order fulfillment, timely deliveries and cost optimization.

Can I introduce what we can offer you?


Zbynek Spacek


