svn commit: r295964 - head/sys/dev/hyperv/vmbus
Sepherosa Ziehau
sephe at FreeBSD.org
Wed Feb 24 08:54:51 UTC 2016
Author: sephe
Date: Wed Feb 24 08:54:50 2016
New Revision: 295964
URL: https://svnweb.freebsd.org/changeset/base/295964
Log:
hyperv/vmbus: Use free(9) for interrupt page; it is allocated by malloc(9)
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D5417
Modified:
head/sys/dev/hyperv/vmbus/hv_connection.c
Modified: head/sys/dev/hyperv/vmbus/hv_connection.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_connection.c Wed Feb 24 07:53:57 2016 (r295963)
+++ head/sys/dev/hyperv/vmbus/hv_connection.c Wed Feb 24 08:54:50 2016 (r295964)
@@ -248,10 +248,7 @@ hv_vmbus_connect(void) {
mtx_destroy(&hv_vmbus_g_connection.channel_msg_lock);
if (hv_vmbus_g_connection.interrupt_page != NULL) {
- contigfree(
- hv_vmbus_g_connection.interrupt_page,
- PAGE_SIZE,
- M_DEVBUF);
+ free(hv_vmbus_g_connection.interrupt_page, M_DEVBUF);
hv_vmbus_g_connection.interrupt_page = NULL;
}
@@ -279,7 +276,7 @@ hv_vmbus_disconnect(void) {
ret = hv_vmbus_post_message(&msg, sizeof(hv_vmbus_channel_unload));
- contigfree(hv_vmbus_g_connection.interrupt_page, PAGE_SIZE, M_DEVBUF);
+ free(hv_vmbus_g_connection.interrupt_page, M_DEVBUF);
mtx_destroy(&hv_vmbus_g_connection.channel_msg_lock);
More information about the svn-src-all
mailing list