Date: Sun, 4 Jul 2010 07:42:52 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ata ata-disk.c Message-ID: <201007040743.o647h8bt060922@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp 2010-07-04 07:42:52 UTC FreeBSD src repository Modified files: sys/dev/ata ata-disk.c Log: SVN rev 209683 on 2010-07-04 07:42:52Z by imp Add a safety-belt. If the identified disk has 0 blocks, don't attach it. This can happen in some cases when plugging in SD/SmartCard PC Cards with empty slots. It is better to detect this bogosity, and refuse to attach rather than panic with a division by zero (in one of many places) down stream. Revision Changes Path 1.225 +8 -3 src/sys/dev/ata/ata-disk.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007040743.o647h8bt060922>