Re: [PATCH] nvdimm/pmem: Fix an error handling path in 'pmem_attach_disk()'

2021-11-07 Thread Marion & Christophe JAILLET
Le 07/11/2021 à 18:25, Marion & Christophe JAILLET a écrit : Le 07/11/2021 à 18:20, Christophe JAILLET a écrit : Le 07/11/2021 à 18:11, Ira Weiny a écrit : On Sat, Nov 06, 2021 at 06:27:11PM +0100, Christophe JAILLET wrote: If 'devm_init_badblocks()' fails, a previous 'blk_alloc_

Re: [PATCH] nvdimm/pmem: Fix an error handling path in 'pmem_attach_disk()'

2021-11-07 Thread Marion & Christophe JAILLET
Le 07/11/2021 à 18:20, Christophe JAILLET a écrit : Le 07/11/2021 à 18:11, Ira Weiny a écrit : On Sat, Nov 06, 2021 at 06:27:11PM +0100, Christophe JAILLET wrote: If 'devm_init_badblocks()' fails, a previous 'blk_alloc_disk()' call must be undone. I think this is a problem...

Re: [PATCH] irqdomain: Add documentation for irq_create_of_mapping()

2020-12-19 Thread Marion & Christophe JAILLET
Le 18/12/2020 à 19:59, Marc Zyngier a écrit : Hi Christophe, On Tue, 15 Dec 2020 20:07:47 +, Christophe JAILLET wrote: Add a description for 'irq_create_of_mapping()' and make explicit the fact that the resources allocated by this function can be freed by calling 'irq_dispose_mapping()'

Re: [PATCH net] atl1c: fix error return code in atl1c_probe()

2020-11-17 Thread Marion & Christophe JAILLET
Le 17/11/2020 à 03:55, Zhang Changzhong a écrit : Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Hi, should it have any importance, the Fixes tag is

Re: [PATCH net] atl1e: fix error return code in atl1e_probe()

2020-11-17 Thread Marion & Christophe JAILLET
Le 17/11/2020 à 03:57, Zhang Changzhong a écrit : Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 85eb5bc33717 ("net: atheros: switch from 'pci_' to 'dma_' API") Hi, should it have any importance, the Fixes tag is

Re: [PATCH] drm: amdgpu: Use the correct size when allocating memory

2020-08-10 Thread Marion & Christophe JAILLET
Le 10/08/2020 à 17:42, Dan Carpenter a écrit : On Sun, Aug 09, 2020 at 10:34:06PM +0200, Christophe JAILLET wrote: When '*sgt' is allocated, we must allocated 'sizeof(**sgt)' bytes instead of 'sizeof(*sg)'. 'sg' (i.e. struct scatterlist) is smaller than 'sgt' (i.e struct sg_table), so this

Re: [PATCH v2] dma-pool: Fix too large DMA pools on medium systems

2020-06-27 Thread Marion & Christophe JAILLET
Le 24/06/2020 à 09:38, Christoph Hellwig a écrit : Hi Guenter, can you try the patch below? This just converts the huge allocations in mptbase to use GFP_KERNEL. Christophe (added to Cc) actually has a scripted conversion for the rest that he hasn't posted yet, so I'll aim for the minimal

Re: [PATCH V3] firmware: stratix10-svc: Fix some error handling code

2020-06-27 Thread Marion & Christophe JAILLET
Le 27/06/2020 à 07:15, Greg KH a écrit : On Fri, Jun 26, 2020 at 09:37:20PM +0200, Christophe JAILLET wrote: --- v2: takes Dan's comment into account and fix another resource leak. v3: merge the previous 4 patches in a single one to ease review No, 4 small patches are _MUCH_ easier to

Re: [PATCH 5.7 318/477] pinctrl: freescale: imx: Use devm_of_iomap() to avoid a resource leak in case of error in imx_pinctrl_probe()

2020-06-23 Thread Marion & Christophe JAILLET
Hi, This one must NOT be included. It generates a regression. This should be removed from 5.4 as well. See 13f2d25b951f139064ec2dd53c0c7ebdf8d8007e. There is also a thread on ML about it. I couldn't find it right away, but I'm sure that Dan will be quicker than me for finding it, if needed

Re: [PATCH] scsi: cumana_2: Fix different dev_id between 'request_irq()' and 'free_irq()'

2020-05-30 Thread Marion & Christophe JAILLET
Le 30/05/2020 à 11:43, Russell King - ARM Linux admin a écrit : On Sat, May 30, 2020 at 09:35:55AM +0200, Christophe JAILLET wrote: The dev_id used in 'request_irq()' and 'free_irq()' should match. So use 'host' in both cases. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by:

Re: [PATCH 3.16 35/99] pxa168fb: Fix the function used to release some memory in an error handling path

2020-05-21 Thread Marion & Christophe JAILLET
Hi, sorry for the noise, I have messed up my https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ usage. I thought I was looking at the 3.16.83 branch, but I was not. The patch looks good to me. CJ Le 21/05/2020 à 16:09, Marion & Christophe JAILLET a écrit : Hi, I don't t

Re: [PATCH 3.16 35/99] pxa168fb: Fix the function used to release some memory in an error handling path

2020-05-21 Thread Marion & Christophe JAILLET
Hi, I don't think that this one is applicable to 3.16.x The remove function and the error handling path of the probe function both use 'dma_free_wc'. I've not look in details, but it looks consistent and the patch would not apply as-is anyway. just my 2c. CJ Le 20/05/2020 à 16:14, Ben

Re: [PATCH] memory: tegra: Fix an error handling path in 'tegra186_emc_probe()'

2020-05-08 Thread Marion & Christophe JAILLET
Le 08/05/2020 à 10:49, Dan Carpenter a écrit : On Wed, May 06, 2020 at 10:09:07PM +0200, Christophe JAILLET wrote: @@ -237,7 +239,7 @@ static int tegra186_emc_probe(struct platform_device *pdev) "failed to set rate range [%lu-%lu] for %pC\n",

Re: [PATCH] iio: sca3000: Remove an erroneous 'get_device()'

2020-05-06 Thread Marion & Christophe JAILLET
Le 06/05/2020 à 12:38, Andy Shevchenko a écrit : On Wed, May 6, 2020 at 6:55 AM Christophe JAILLET wrote: This looks really unusual to have a 'get_device()' hidden in a 'dev_err()' call. Remove it. While at it add a missing \n at the end of the message. It should have Fixes tag because it

Re: [PATCH] net: dsa: loop: Check for memory allocation failure

2017-05-09 Thread Marion & Christophe JAILLET
Le 10/05/2017 à 06:46, Julia Lawall a écrit : On Wed, 10 May 2017, Christophe JAILLET wrote: Le 09/05/2017 à 17:18, Joe Perches a écrit : On Mon, 2017-05-08 at 17:35 -0700, Florian Fainelli wrote: On 05/08/2017 04:46 PM, Julia Lawall wrote: On Mon, 8 May 2017, Joe Perches wrote: Each

Re: [PATCH] net: dsa: loop: Check for memory allocation failure

2017-05-09 Thread Marion & Christophe JAILLET
Le 10/05/2017 à 06:46, Julia Lawall a écrit : On Wed, 10 May 2017, Christophe JAILLET wrote: Le 09/05/2017 à 17:18, Joe Perches a écrit : On Mon, 2017-05-08 at 17:35 -0700, Florian Fainelli wrote: On 05/08/2017 04:46 PM, Julia Lawall wrote: On Mon, 8 May 2017, Joe Perches wrote: Each

[RFC] mips: ath79: clock:- Unmap region obtained by of_iomap

2017-02-06 Thread Marion & Christophe JAILLET
Hi, I had a patch similar to: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/mips/ath79/clock.c?id=b3d91db3f71d5f70ea60d900425a3f96aeb3d065 in my own tree. However, mine was slightly different and was also freeing the memory mapping in the normal case, when

[RFC] mips: ath79: clock:- Unmap region obtained by of_iomap

2017-02-06 Thread Marion & Christophe JAILLET
Hi, I had a patch similar to: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/mips/ath79/clock.c?id=b3d91db3f71d5f70ea60d900425a3f96aeb3d065 in my own tree. However, mine was slightly different and was also freeing the memory mapping in the normal case, when

[RFC] Question about freeing of resource in 'atlas7_pinmux_probe()', in file 'drivers/pinctrl/sirf/pinctrl-atlas7.c'

2016-12-18 Thread Marion & Christophe JAILLET
Hi, while playing with coccinelle, a missing 'of_node_put()' triggered in 'atlas7_pinmux_probe()', in file 'drivers/pinctrl/sirf/pinctrl-atlas7.c'. /* The sd3 and sd9 shared all pins, and the function select by * SYS2PCI_SDIO9SEL register */ sys2pci_np =

[RFC] Question about freeing of resource in 'atlas7_pinmux_probe()', in file 'drivers/pinctrl/sirf/pinctrl-atlas7.c'

2016-12-18 Thread Marion & Christophe JAILLET
Hi, while playing with coccinelle, a missing 'of_node_put()' triggered in 'atlas7_pinmux_probe()', in file 'drivers/pinctrl/sirf/pinctrl-atlas7.c'. /* The sd3 and sd9 shared all pins, and the function select by * SYS2PCI_SDIO9SEL register */ sys2pci_np =

Spurious code in commit 1bf40ada6290 ("amd-xgbe: Add support for clause 37 auto-negotiation"

2016-11-12 Thread Marion & Christophe JAILLET
Hi, in commit 1bf40ada6290 ("amd-xgbe: Add support for clause 37 auto-negotiation"), we can find: diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-common.h b/drivers/net/ethernet/amd/xgbe/xgbe-common.h index 695e982..8bcf4ef 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-common.h +++

Spurious code in commit 1bf40ada6290 ("amd-xgbe: Add support for clause 37 auto-negotiation"

2016-11-12 Thread Marion & Christophe JAILLET
Hi, in commit 1bf40ada6290 ("amd-xgbe: Add support for clause 37 auto-negotiation"), we can find: diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-common.h b/drivers/net/ethernet/amd/xgbe/xgbe-common.h index 695e982..8bcf4ef 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-common.h +++

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-14 Thread Marion & Christophe JAILLET
Le 14/09/2016 à 10:25, Guoqing Jiang a écrit : On 09/13/2016 01:24 PM, Shaohua Li wrote: On Mon, Sep 12, 2016 at 09:09:48PM +0200, Christophe JAILLET wrote: Hi, I'm puzzled by commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed"). Hi Christophe, Thank you very much to

Re: Question about commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed").

2016-09-14 Thread Marion & Christophe JAILLET
Le 14/09/2016 à 10:25, Guoqing Jiang a écrit : On 09/13/2016 01:24 PM, Shaohua Li wrote: On Mon, Sep 12, 2016 at 09:09:48PM +0200, Christophe JAILLET wrote: Hi, I'm puzzled by commit f9a67b1182e5 ("md/bitmap: clear bitmap if bitmap_create failed"). Hi Christophe, Thank you very much to

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-29 Thread Marion & Christophe JAILLET
Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: Reference to the 'np' node is dropped before dereferencing the 'sizep' and 'basep' pointers, which could by then

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-29 Thread Marion & Christophe JAILLET
Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: Reference to the 'np' node is dropped before dereferencing the 'sizep' and 'basep' pointers, which could by then

Re: [PATCH 2/2] gpio: x-gene: Remove a useless memset

2015-05-01 Thread Marion & Christophe JAILLET
Hi, yes, you are correct, it's a mistake. Should I resubmit with an updated subject? CJ Le 01/05/2015 16:19, Dan Carpenter a écrit : The "[PATCH 2/2]" bit is a mistake. It's not part of a patchset. It's just that you have sent two patches today. The first patch wasn't even named [1/2]...

Re: [PATCH 2/2] gpio: x-gene: Remove a useless memset

2015-05-01 Thread Marion Christophe JAILLET
Hi, yes, you are correct, it's a mistake. Should I resubmit with an updated subject? CJ Le 01/05/2015 16:19, Dan Carpenter a écrit : The [PATCH 2/2] bit is a mistake. It's not part of a patchset. It's just that you have sent two patches today. The first patch wasn't even named [1/2]...