]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r209683 by imp:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 19 Nov 2010 09:25:12 +0000 (09:25 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 19 Nov 2010 09:25:12 +0000 (09:25 +0000)
commit2396e32a921e6350a3c8b5804270fce137aff789
tree1821baa28cd4a78e9863b09573fc5ca884ffa3a7
parent93a434509aca954720a43a0414740608602755da
MFC r209683 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@215511 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ata/ata-disk.c