sd: do not add one sector to the disk size
authorVincent Palatin <vpalatin@chromium.org>
Mon, 25 Jul 2011 23:19:05 +0000 (16:19 -0700)
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>
Sat, 30 Jul 2011 05:26:40 +0000 (07:26 +0200)
commit5e37141bbb9796ef139aee902a882ca97d59b84d
tree1150fda952e77c34e2282209be5d0057ac843377
parent4b5dfd8246321d2cdca0508f6837a681f7873f43
sd: do not add one sector to the disk size

This leads to random off-by-one error.
When the size of the SD is exactly 1GB, the emulation was returning a
wrong SDHC CSD descriptor.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/sd.c