mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 22:27:47 -04:00
Initialize a stack variable in mprsas_get_sas_address_for_sata_disk
Thought it's difficult to reproduce, I think this variable was responsible for a use-after-free panic when a SATA disk timed out responding to a SATA identify command during boot. Submitted by: slm Reviewed by: slm MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D9364
This commit is contained in:
parent
aa3650ea36
commit
4e02badb18
1 changed files with 1 additions and 0 deletions
|
|
@ -911,6 +911,7 @@ mprsas_get_sas_address_for_sata_disk(struct mpr_softc *sc,
|
|||
u8 sas_status;
|
||||
|
||||
memset(&ata_identify, 0, sizeof(ata_identify));
|
||||
memset(&mpi_reply, 0, sizeof(mpi_reply));
|
||||
try_count = 0;
|
||||
do {
|
||||
rc = mprsas_get_sata_identify(sc, handle, &mpi_reply,
|
||||
|
|
|
|||
Loading…
Reference in a new issue