Skip to content
Commit 6cca2003 authored by Jon Mason's avatar Jon Mason Committed by David S. Miller
Browse files

vxge: cleanup probe error paths



Reorder the commands to be in the inverse order of their allocations
(instead of the random order they appear to be in), propagate return
code on errors from pci_request_region and register_netdev, reduce the
config_dev_cnt and total_dev_cnt counters on remove, and return the
correct error code for vdev->vpaths kzalloc failures.  Also, prevent
leaking of vdev->vpaths memory and netdev in vxge_probe error path due
to freeing for these not occurring in vxge_device_unregister.

Signed-off-by: default avatarJon Mason <jon.mason@exar.com>
Signed-off-by: default avatarSivakumar Subramani <sivakumar.subramani@exar.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 80f8f102
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment