projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lan78xx: Remove not defined MAC_CR_GMII_EN_ bit from MAC_CR.
[cascardo/linux.git]
/
drivers
/
hv
/
channel.c
diff --git
a/drivers/hv/channel.c
b/drivers/hv/channel.c
index
603ce97
..
c4dcab0
100644
(file)
--- a/
drivers/hv/channel.c
+++ b/
drivers/hv/channel.c
@@
-601,6
+601,7
@@
int vmbus_sendpacket_ctl(struct vmbus_channel *channel, void *buffer,
u64 aligned_data = 0;
int ret;
bool signal = false;
u64 aligned_data = 0;
int ret;
bool signal = false;
+ int num_vecs = ((bufferlen != 0) ? 3 : 1);
/* Setup the descriptor */
/* Setup the descriptor */
@@
-618,7
+619,8
@@
int vmbus_sendpacket_ctl(struct vmbus_channel *channel, void *buffer,
bufferlist[2].iov_base = &aligned_data;
bufferlist[2].iov_len = (packetlen_aligned - packetlen);
bufferlist[2].iov_base = &aligned_data;
bufferlist[2].iov_len = (packetlen_aligned - packetlen);
- ret = hv_ringbuffer_write(&channel->outbound, bufferlist, 3, &signal);
+ ret = hv_ringbuffer_write(&channel->outbound, bufferlist, num_vecs,
+ &signal);
/*
* Signalling the host is conditional on many factors:
/*
* Signalling the host is conditional on many factors: