Re: [PATCH 2/2] cxl: Fix a memory leak in an error handling path

2022-07-12 Thread Andrew Donnellan
On Mon, 2022-07-11 at 21:14 +0200, Christophe JAILLET wrote: > A bitmap_zalloc() must be balanced by a corresponding bitmap_free() > in the > error handling path of afu_allocate_irqs(). > > Signed-off-by: Christophe JAILLET Thanks for catching this. Acked-by: Andrew Donnellan > --- > The erro

[PATCH 2/2] cxl: Fix a memory leak in an error handling path

2022-07-11 Thread Christophe JAILLET
A bitmap_zalloc() must be balanced by a corresponding bitmap_free() in the error handling path of afu_allocate_irqs(). Signed-off-by: Christophe JAILLET --- The error handling path should be done in the reversed order but it should work as-is. --- drivers/misc/cxl/irq.c | 1 + 1 file changed, 1