Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 09:25:12 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/ata ata-disk.c
Message-ID:  <201011190925.oAJ9PaCl001436@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mav         2010-11-19 09:25:12 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/dev/ata          ata-disk.c 
  Log:
  SVN rev 215511 on 2010-11-19 09:25:12Z by mav
  
  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.
  
  Revision    Changes    Path
  1.216.2.10  +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?201011190925.oAJ9PaCl001436>