Staging: hv: remove ASSERT() in Channel.c
authorBill Pemberton <[email protected]>
Wed, 5 May 2010 19:27:36 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <[email protected]>
Tue, 11 May 2010 18:36:13 +0000 (11:36 -0700)
return an error instead of calling ASSERT() if VmbusPostMessage()
fails.

Signed-off-by: Bill Pemberton <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/hv/Channel.c

index 2d8c086228cc88071aa5c581a7cdac4f4b96e0e1..8c30540b725dc52fe19ad58da64efec13fb5578a 100644 (file)
@@ -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);