Re: [PATCH v2] net/mlx5: Replace kfree with kvfree

From: David Miller
Date: Thu Jul 18 2019 - 15:11:32 EST


From: Saeed Mahameed <saeedm@xxxxxxxxxxxx>
Date: Thu, 18 Jul 2019 18:38:34 +0000

> On Wed, 2019-07-17 at 18:14 +0800, Chuhong Yuan wrote:
>> Variable allocated by kvmalloc should not be freed by kfree.
>> Because it may be allocated by vmalloc.
>> So replace kfree with kvfree here.
>>
>> Fixes: 9b1f298236057 ("net/mlx5: Add support for FW fatal reporter
>> dump")
>> Signed-off-by: Chuhong Yuan <hslester96@xxxxxxxxx>
>
> Acked-by: Saeed Mahameed <saeedm@xxxxxxxxxxxx>
>
> Dave, i guess this can go to net.

Ok, applied.