[dm-devel] [PATCH] dm verity fec: Fix memory leak in verity_fec_ctr

Sami Tolvanen samitolvanen at google.com
Tue Mar 17 16:09:02 UTC 2020


On Tue, Mar 17, 2020 at 7:11 AM Shetty, Harshini X (EXT-Sony Mobile)
<Harshini.X.Shetty at sony.com> wrote:
>
> Fix below kmemleak detected in verity_fec_ctr.
> output_pool is allocated for each dm-target device.
> But it is not freed when dm-table for the target
> is removed.Hence Free the output buffer in destructor
> function verity_fec_dtr

Good catch, thanks for the fix!

Reviewed-by: Sami Tolvanen <samitolvanen at google.com>

Sami





More information about the dm-devel mailing list