Skip to content

Commit

Permalink
Staging: hv: remove ASSERT() in Channel.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bill Pemberton authored and Greg Kroah-Hartman committed May 11, 2010
1 parent d1c250b commit 9925915
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/hv/Channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9925915

Please sign in to comment.