RE: [PATCH] net: mana: Fix memory leak in mana_hwc_create_wq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: José Expósito <jose.exposito89@xxxxxxxxx>
> Sent: Wednesday, December 8, 2021 2:37 PM
> 
> If allocating the DMA buffer fails, mana_hwc_destroy_wq was called
> without previously storing the pointer to the queue.
> 
> In order to avoid leaking the pointer to the queue, store it as soon as
> it is allocated.
> 
> Addresses-Coverity-ID: 1484720 ("Resource leak")
> Signed-off-by: José Expósito <jose.exposito89@xxxxxxxxx>

Reviewed-by: Dexuan Cui <decui@xxxxxxxxxxxxx>





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux