aboutsummaryrefslogtreecommitdiff
path: root/drivers/hv/hv_util.c
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-12-02 11:27:24 +0800
committerAlex Shi <alex.shi@linaro.org>2016-12-02 11:27:24 +0800
commitffba0bcddf3329d5d411552230267147efc6ffc3 (patch)
tree08149d70a3cb3792bf615d27f3f98b93d7fa810d /drivers/hv/hv_util.c
parent4450e96693acc193205906318b0f6e6e6eca4e64 (diff)
parent2e67ba554184199114a948786e47decb8b9a469b (diff)
Merge branch 'linux-linaro-lsk-v3.18' into linux-linaro-lsk-v3.18-androidlinux-linaro-lsk-v3.18-android-test
Conflicts: skip stable commit 27c872851 u_ether: don't starve tx request queue in drivers/usb/gadget/function/u_ether.c, since it isn't fit in android
Diffstat (limited to 'drivers/hv/hv_util.c')
-rw-r--r--drivers/hv/hv_util.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c
index 3b9c9ef0deb8..2d1414d07305 100644
--- a/drivers/hv/hv_util.c
+++ b/drivers/hv/hv_util.c
@@ -283,10 +283,14 @@ static void heartbeat_onchannelcallback(void *context)
u8 *hbeat_txf_buf = util_heartbeat.recv_buffer;
struct icmsg_negotiate *negop = NULL;
- vmbus_recvpacket(channel, hbeat_txf_buf,
- PAGE_SIZE, &recvlen, &requestid);
+ while (1) {
+
+ vmbus_recvpacket(channel, hbeat_txf_buf,
+ PAGE_SIZE, &recvlen, &requestid);
+
+ if (!recvlen)
+ break;
- if (recvlen > 0) {
icmsghdrp = (struct icmsg_hdr *)&hbeat_txf_buf[
sizeof(struct vmbuspipe_hdr)];