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)
commit70dd3704f702c3be986344807fc77c1c9c820407
tree1150fda952e77c34e2282209be5d0057ac843377
parent7f764ecb73ad2640e12f3cbeb6a4a319dce1862a
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