svn commit: r270339 - head/sys/dev/xen/blkback
Roger Pau Monné
royger at FreeBSD.org
Fri Aug 22 15:38:22 UTC 2014
Author: royger
Date: Fri Aug 22 15:38:21 2014
New Revision: 270339
URL: http://svnweb.freebsd.org/changeset/base/270339
Log:
xen: fix incorrectly accounted free
Fix some frees incorrectly assigned to M_XENBUS when the memory is
allocated with M_XENSTORE.
Sponsored by: Citrix Systems R&D
MFC after: 1 week
dev/xen/blkback/blkback.c:
- Fix incorrect frees.
Modified:
head/sys/dev/xen/blkback/blkback.c
Modified: head/sys/dev/xen/blkback/blkback.c
==============================================================================
--- head/sys/dev/xen/blkback/blkback.c Fri Aug 22 15:36:57 2014 (r270338)
+++ head/sys/dev/xen/blkback/blkback.c Fri Aug 22 15:38:21 2014 (r270339)
@@ -3852,17 +3852,17 @@ xbb_detach(device_t dev)
xbb_close_backend(xbb);
if (xbb->dev_mode != NULL) {
- free(xbb->dev_mode, M_XENBUS);
+ free(xbb->dev_mode, M_XENSTORE);
xbb->dev_mode = NULL;
}
if (xbb->dev_type != NULL) {
- free(xbb->dev_type, M_XENBUS);
+ free(xbb->dev_type, M_XENSTORE);
xbb->dev_type = NULL;
}
if (xbb->dev_name != NULL) {
- free(xbb->dev_name, M_XENBUS);
+ free(xbb->dev_name, M_XENSTORE);
xbb->dev_name = NULL;
}
More information about the svn-src-all
mailing list