diff options
author | imp <imp@FreeBSD.org> | 2010-07-04 07:42:52 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-07-04 07:42:52 +0000 |
commit | cdee2d4b3b5052c225d92e3155cf64c04e3a9271 (patch) | |
tree | 59bbf7e155c0a1278bfcc571809501a2ee48852c /sys/vm | |
parent | e88b37e4b4d08533c18c37a554df6f58d45e9cca (diff) | |
download | FreeBSD-src-cdee2d4b3b5052c225d92e3155cf64c04e3a9271.zip FreeBSD-src-cdee2d4b3b5052c225d92e3155cf64c04e3a9271.tar.gz |
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.
Diffstat (limited to 'sys/vm')
0 files changed, 0 insertions, 0 deletions