summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/include
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-10-11 21:30:27 +0000
committergrehan <grehan@FreeBSD.org>2013-10-11 21:30:27 +0000
commit35b7675f726443ac3856400e0cf111b9dfc30e93 (patch)
tree34d20c12e0858b4b43bbd940df4b973b720ea946 /sys/dev/hyperv/include
parentb1f224fcfd1ec94903c8a95f75ca05285454f185 (diff)
downloadFreeBSD-src-35b7675f726443ac3856400e0cf111b9dfc30e93.zip
FreeBSD-src-35b7675f726443ac3856400e0cf111b9dfc30e93.tar.gz
Fix vmbus channel memory leak where incorrect length parameter was
being passed to contigfree(). Submitted by: Microsoft hyperv dev team Approved by: re@ (glebius)
Diffstat (limited to 'sys/dev/hyperv/include')
-rw-r--r--sys/dev/hyperv/include/hyperv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/hyperv/include/hyperv.h b/sys/dev/hyperv/include/hyperv.h
index 3651269..4257b37 100644
--- a/sys/dev/hyperv/include/hyperv.h
+++ b/sys/dev/hyperv/include/hyperv.h
@@ -24,6 +24,8 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
/**
@@ -669,6 +671,7 @@ typedef struct hv_vmbus_channel {
* Allocated memory for ring buffer
*/
void* ring_buffer_pages;
+ unsigned long ring_buffer_size;
uint32_t ring_buffer_page_count;
/*
* send to parent
OpenPOWER on IntegriCloud