[PATCH] PCI: xilinx-nwl: Simplify code and fix a memory leak
Lorenzo Pieralisi
lorenzo.pieralisi at arm.com
Mon Nov 29 05:41:05 PST 2021
On Sun, 7 Nov 2021 11:04:43 +0100, Christophe JAILLET wrote:
> Allocate space for 'bitmap' in 'struct nwl_msi' at build time instead of
> dynamically allocating the memory at runtime.
>
> This simplifies code (especially error handling paths) and avoid some
> open-coded arithmetic in allocator arguments
>
> This also fixes a potential memory leak. The bitmap was never freed. It is
> now part of a managed resource.
>
> [...]
Applied to pci/xilinx-nwl, thanks!
[1/1] PCI: xilinx-nwl: Simplify code and fix a memory leak
https://git.kernel.org/lpieralisi/pci/c/e2b86f9777
Thanks,
Lorenzo
More information about the linux-arm-kernel
mailing list