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 11:36:13 -0700 |
commit | 99259159c0eb58a539ed399677c8294e3792722b (patch) | |
tree | 5aa54820fce14714c1324e1226015a4fd7251440 /drivers/staging/hv | |
parent | Staging: hv: remove ASSERT() in Channel.c (diff) | |
download | linux-dev-99259159c0eb58a539ed399677c8294e3792722b.tar.xz linux-dev-99259159c0eb58a539ed399677c8294e3792722b.zip |
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')
-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 2d8c086228cc..8c30540b725d 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, ret = VmbusPostMessage(gpadlBody, subMsgInfo->MessageSize - sizeof(*subMsgInfo)); - ASSERT(ret == 0); + if (!ret) + goto Cleanup; + } } osd_WaitEventWait(msgInfo->WaitEvent); |