projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c250b
)
Staging: hv: remove ASSERT() in Channel.c
author
Bill Pemberton
<wfp5p@virginia.edu>
Wed, 5 May 2010 19:27:36 +0000
(15:27 -0400)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/hv/Channel.c
b/drivers/staging/hv/Channel.c
index 2d8c086228cc88071aa5c581a7cdac4f4b96e0e1..8c30540b725dc52fe19ad58da64efec13fb5578a 100644
(file)
--- 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);