Messages in this thread | | | From | Lorenzo Pieralisi <> | Subject | Re: [PATCH] PCI: xilinx-nwl: Simplify code and fix a memory leak | Date | Mon, 29 Nov 2021 13:41:05 +0000 |
| |
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
| |