diff options
Diffstat (limited to 'drivers/staging/hv/StorVsc.c')
-rw-r--r-- | drivers/staging/hv/StorVsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/StorVsc.c b/drivers/staging/hv/StorVsc.c index 1c82e79..ef8031f 100644 --- a/drivers/staging/hv/StorVsc.c +++ b/drivers/staging/hv/StorVsc.c @@ -516,7 +516,7 @@ static int StorVscChannelInit(struct hv_device *Device) Cleanup: if (request->WaitEvent) { - WaitEventClose(request->WaitEvent); + kfree(request->WaitEvent); request->WaitEvent = NULL; } @@ -678,7 +678,7 @@ StorVscOnHostReset( /* FIXME: Add a timeout */ WaitEventWait(request->WaitEvent); - WaitEventClose(request->WaitEvent); + kfree(request->WaitEvent); DPRINT_INFO(STORVSC, "host adapter reset completed"); /* |