gve: replace kfree with kvfree
authorChuhong Yuan <hslester96@gmail.com>
Wed, 17 Jul 2019 02:05:11 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 23:31:27 +0000 (16:31 -0700)
commit8ec1e9006908a606b2a67c905f33ee2d3b6be5c2
treeab18fcdc9f64a0a839cdbe9daed1265671f3ace6
parentbb745231678cd92ab0c4d37343b06e4879072368
gve: replace kfree with kvfree

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 <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_main.c
drivers/net/ethernet/google/gve/gve_rx.c