From 1e218ce964ebb4287014728ba0c38f8593aceb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Date: Fri, 22 Aug 2014 15:38:21 +0000 Subject: [PATCH] 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. --- sys/dev/xen/blkback/blkback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/xen/blkback/blkback.c b/sys/dev/xen/blkback/blkback.c index f2f26988e53e..654f307cbb6d 100644 --- a/sys/dev/xen/blkback/blkback.c +++ b/sys/dev/xen/blkback/blkback.c @@ -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; }