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.
This commit is contained in:
parent
ccd5615a33
commit
1e218ce964
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user