]> git.baikalelectronics.ru Git - kernel.git/commit
gve: Propagate error codes to caller
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 1 Jul 2021 20:18:37 +0000 (22:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 22:45:01 +0000 (15:45 -0700)
commit33d764da7c085ea2c6822d1ff3ca935530b21c3c
treea4604e8c5f510020e258ff7422addff22b31ee56
parent66a4a60d8072d61408d2f7929eb8f9f889653e68
gve: Propagate error codes to caller

If 'gve_probe()' fails, we should propagate the error code, instead of
hard coding a -ENXIO value.
Make sure that all error handling paths set a correct value for 'err'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/google/gve/gve_main.c