View | Details | Raw Unified | Return to bug 78984
Collapse All | Expand All

(-)sys/cam/scsi/scsi_da.c (+9 lines)
Lines 1850-1855 Link Here
1850
	dp = &softc->params;
1850
	dp = &softc->params;
1851
	dp->secsize = block_len;
1851
	dp->secsize = block_len;
1852
	dp->sectors = maxsector + 1;
1852
	dp->sectors = maxsector + 1;
1853
1854
	/*
1855
	 * An odd sector count is most likely an off-by-one error in the
1856
	 * underlying SCSI device (returning sector count instead of the
1857
	 * highest sector number); Let's decrease it here to avoid access
1858
	 * outside the supported sector range.
1859
	 */
1860
	dp->sectors &= ~1;
1861
1853
	/*
1862
	/*
1854
	 * Have the controller provide us with a geometry
1863
	 * Have the controller provide us with a geometry
1855
	 * for this disk.  The only time the geometry
1864
	 * for this disk.  The only time the geometry

Return to bug 78984