diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2010-05-05 15:27:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-11 14:36:13 -0400 |
commit | 99259159c0eb58a539ed399677c8294e3792722b (patch) | |
tree | 5aa54820fce14714c1324e1226015a4fd7251440 /drivers/staging/hv/Channel.c | |
parent | d1c250bb5df9afb5af3f290d1006dfe601a51e2e (diff) |
Staging: hv: remove ASSERT() in Channel.c
return an error instead of calling ASSERT() if VmbusPostMessage()
fails.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/Channel.c')
-rw-r--r-- | drivers/staging/hv/Channel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/hv/Channel.c b/drivers/staging/hv/Channel.c index 2d8c086228c..8c30540b725 100644 --- a/drivers/staging/hv/Channel.c +++ b/drivers/staging/hv/Channel.c | |||
@@ -551,7 +551,9 @@ int VmbusChannelEstablishGpadl(struct vmbus_channel *Channel, void *Kbuffer, | |||
551 | ret = VmbusPostMessage(gpadlBody, | 551 | ret = VmbusPostMessage(gpadlBody, |
552 | subMsgInfo->MessageSize - | 552 | subMsgInfo->MessageSize - |
553 | sizeof(*subMsgInfo)); | 553 | sizeof(*subMsgInfo)); |
554 | ASSERT(ret == 0); | 554 | if (!ret) |
555 | goto Cleanup; | ||
556 | |||
555 | } | 557 | } |
556 | } | 558 | } |
557 | osd_WaitEventWait(msgInfo->WaitEvent); | 559 | osd_WaitEventWait(msgInfo->WaitEvent); |