From: Bill Pemberton Date: Wed, 5 May 2010 19:27:36 +0000 (-0400) Subject: Staging: hv: remove ASSERT() in Channel.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99259159c0eb58a539ed399677c8294e3792722b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: hv: remove ASSERT() in Channel.c return an error instead of calling ASSERT() if VmbusPostMessage() fails. Signed-off-by: Bill Pemberton Cc: Hank Janssen Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- 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);