Re: [PATCH] gve: replace kfree with kvfree

From: Catherine Sullivan
Date: Fri Jul 19 2019 - 13:45:11 EST


On Thu, Jul 18, 2019 at 4:32 PM David Miller <davem@xxxxxxxxxxxxx> wrote:
>
> From: Chuhong YUAN <chuhongyuan@xxxxxxxxxxx>
> Date: Wed, 17 Jul 2019 00:59:02 +0000
>
> > Variables allocated by kvzalloc should not be freed by kfree.
> > Because they may be allocated by vmalloc.
> > So we replace kfree with kvfree here.
> >
> > Signed-off-by: Chuhong Yuan <chuhongyuan@xxxxxxxxxxx>
>
> Applied, thanks Chuhong.
>
> GVE maintainers, you are upstream now and have to stay on top of review
> of changes like this. Otherwise I'll just review it myself and apply
> it unless I find problems, and that may not be what you want :)

Will do, thanks for the review. And thanks for the fix Chuhong.