svn commit: r339076 - head/sys/cam/scsi
Kenneth D. Merry
ken at FreeBSD.org
Mon Oct 1 19:00:47 UTC 2018
Author: ken
Date: Mon Oct 1 19:00:46 2018
New Revision: 339076
URL: https://svnweb.freebsd.org/changeset/base/339076
Log:
Fix a da(4) driver memory leak for SCSI SMR devices.
In the probe case for SCSI SMR Host Aware or Most Managed drives, be sure
to free allocated memory.
sys/cam/scsi/scsi_da.c:
In dadone_probezone(), free the data pointer before returning.
MFC after: 3 days
Sponsored by: Spectra Logic
Approved by: re (kib)
Modified:
head/sys/cam/scsi/scsi_da.c
Modified: head/sys/cam/scsi/scsi_da.c
==============================================================================
--- head/sys/cam/scsi/scsi_da.c Mon Oct 1 18:51:39 2018 (r339075)
+++ head/sys/cam/scsi/scsi_da.c Mon Oct 1 19:00:46 2018 (r339076)
@@ -5674,6 +5674,9 @@ dadone_probezone(struct cam_periph *periph, union ccb
}
}
}
+
+ free(csio->data_ptr, M_SCSIDA);
+
daprobedone(periph, done_ccb);
return;
}
More information about the svn-src-head
mailing list