Re: [PATCH] gve: replace kfree with kvfree

2019-07-19 Thread Catherine Sullivan
On Thu, Jul 18, 2019 at 4:32 PM David Miller wrote: > > From: Chuhong YUAN > Date: Wed, 17 Jul 2019 00:59:02 + > > > 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: Chu

Re: [PATCH] gve: replace kfree with kvfree

2019-07-18 Thread David Miller
From: Chuhong YUAN Date: Wed, 17 Jul 2019 00:59:02 + > 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 Applied, thanks Chuhong. GVE maintainers, you are upstre

[PATCH] gve: replace kfree with kvfree

2019-07-16 Thread Chuhong Yuan
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 --- drivers/net/ethernet/google/gve/gve_main.c | 22 +++--- drivers/net/ethernet/google/gve/gve_rx.c | 4 ++