]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
gve: Avoid freeing NULL pointer
authorTao Liu <xliutaox@google.com>
Wed, 6 Oct 2021 02:42:20 +0000 (19:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Oct 2021 14:04:26 +0000 (15:04 +0100)
commit922aa9bcac92b3ab6a423526a8e785b35a60b441
treea740c5bfc1953d3f7fa3203c1cda4a1d8f0c70e5
parentd03477ee10f4bc35d3573cf1823814378ef2dca2
gve: Avoid freeing NULL pointer

Prevent possible crashes when cleaning up after unsuccessful
initializations.

Fixes: 893ce44df5658 ("gve: Add basic driver framework for Compute Engine Virtual NIC")
Signed-off-by: Tao Liu <xliutaox@google.com>
Signed-off-by: Catherine Sully <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_main.c