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)
This commit is contained in:
Kenneth D. Merry committed 2018-10-01 19:00:46 +00:00
1 parent 93db904d19
commit aabac0c176
1 file changed
+3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339076
+3
View File
@@ -5674,6 +5674,9 @@ dadone_probezone(struct cam_periph *periph, union ccb *done_ccb)
}
}
}
free(csio->data_ptr, M_SCSIDA);
daprobedone(periph, done_ccb);
return;
}