]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: hv: remove ASSERT() in Channel.c
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 5 May 2010 19:27:36 +0000 (15:27 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
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 <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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);