svn commit: r365741 - stable/12/sys/cam/mmc
Andriy Gapon
avg at FreeBSD.org
Tue Sep 15 05:48:55 UTC 2020
Author: avg
Date: Tue Sep 15 05:48:55 2020
New Revision: 365741
URL: https://svnweb.freebsd.org/changeset/base/365741
Log:
MFC r365445: mmc_da: make sure that part_index is not used uninitialized in sddastart
Modified:
stable/12/sys/cam/mmc/mmc_da.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/cam/mmc/mmc_da.c
==============================================================================
--- stable/12/sys/cam/mmc/mmc_da.c Tue Sep 15 05:46:51 2020 (r365740)
+++ stable/12/sys/cam/mmc/mmc_da.c Tue Sep 15 05:48:55 2020 (r365741)
@@ -1696,6 +1696,7 @@ sddastart(struct cam_periph *periph, union ccb *start_
}
/* Find partition that has outstanding commands. Prefer current partition. */
+ part_index = softc->part_curr;
part = softc->part[softc->part_curr];
bp = bioq_first(&part->bio_queue);
if (bp == NULL) {
More information about the svn-src-all
mailing list