]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid a division by zero if the actual sector size isn't known during the
authorjoerg <joerg@FreeBSD.org>
Mon, 7 Nov 1994 20:09:35 +0000 (20:09 +0000)
committerjoerg <joerg@FreeBSD.org>
Mon, 7 Nov 1994 20:09:35 +0000 (20:09 +0000)
commitb78cd14f01f62a5e22144088014cd73f25ee8137
tree965c647a60748e913c2e1f48209648a4904de7de
parent85b4fbc7138b6ea2ed09c725f2be12681ecf172a
Avoid a division by zero if the actual sector size isn't known during the
device announcement; assume a sector size of 512 instead (likely to be
right at all).
This case happens when booting with a removable disk device attached
(e.g. an MOD), but no medium inserted.
sys/scsi/sd.c