mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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:
1 parent
93db904d19
commit
aabac0c176
1 file changed
+3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339076
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user