diff options
| -rw-r--r-- | drivers/staging/hv/netvsc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index be3825690a27..8b73144e7c12 100644 --- a/drivers/staging/hv/netvsc.c +++ b/drivers/staging/hv/netvsc.c | |||
| @@ -738,7 +738,7 @@ static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo) | |||
| 738 | if (ret != 0) { | 738 | if (ret != 0) { |
| 739 | DPRINT_ERR(NETVSC, "unable to connect to NetVSP - %d", ret); | 739 | DPRINT_ERR(NETVSC, "unable to connect to NetVSP - %d", ret); |
| 740 | ret = -1; | 740 | ret = -1; |
| 741 | goto Close; | 741 | goto close; |
| 742 | } | 742 | } |
| 743 | 743 | ||
| 744 | DPRINT_INFO(NETVSC, "*** NetVSC channel handshake result - %d ***", | 744 | DPRINT_INFO(NETVSC, "*** NetVSC channel handshake result - %d ***", |
| @@ -746,9 +746,9 @@ static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo) | |||
| 746 | 746 | ||
| 747 | return ret; | 747 | return ret; |
| 748 | 748 | ||
| 749 | Close: | 749 | close: |
| 750 | /* Now, we can close the channel safely */ | 750 | /* Now, we can close the channel safely */ |
| 751 | Device->Driver->VmbusChannelInterface.Close(Device); | 751 | vmbus_close(Device->channel); |
| 752 | 752 | ||
| 753 | Cleanup: | 753 | Cleanup: |
| 754 | 754 | ||
| @@ -810,7 +810,7 @@ static int NetVscOnDeviceRemove(struct hv_device *Device) | |||
| 810 | DPRINT_INFO(NETVSC, "net device (%p) safe to remove", netDevice); | 810 | DPRINT_INFO(NETVSC, "net device (%p) safe to remove", netDevice); |
| 811 | 811 | ||
| 812 | /* Now, we can close the channel safely */ | 812 | /* Now, we can close the channel safely */ |
| 813 | Device->Driver->VmbusChannelInterface.Close(Device); | 813 | vmbus_close(Device->channel); |
| 814 | 814 | ||
| 815 | /* Release all resources */ | 815 | /* Release all resources */ |
| 816 | list_for_each_entry_safe(netvscPacket, pos, | 816 | list_for_each_entry_safe(netvscPacket, pos, |
