diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2011-07-30 06:53:39 +0200 |
---|---|---|
committer | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2011-07-30 06:53:39 +0200 |
commit | 63efb1d9c4140108ab57e706fa7a90a21e07cfcc (patch) | |
tree | c8ef53d4e9780e03990c20362f56fd673a028e92 /hw/onenand.c | |
parent | f1588dd26c25bd7590e18a0cce59a5fa82323ce5 (diff) | |
download | qemu-63efb1d9c4140108ab57e706fa7a90a21e07cfcc.zip qemu-63efb1d9c4140108ab57e706fa7a90a21e07cfcc.tar.gz qemu-63efb1d9c4140108ab57e706fa7a90a21e07cfcc.tar.bz2 |
onenand: Add missing brace.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/onenand.c')
-rw-r--r-- | hw/onenand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/onenand.c b/hw/onenand.c index e8d1d4b..b0cbebc 100644 --- a/hw/onenand.c +++ b/hw/onenand.c @@ -720,6 +720,7 @@ void *onenand_init(BlockDriverState *bdrv, if (!s->bdrv) { s->image = memset(qemu_malloc(size + (size >> 5)), 0xff, size + (size >> 5)); + } s->otp = memset(qemu_malloc((64 + 2) << PAGE_SHIFT), 0xff, (64 + 2) << PAGE_SHIFT); s->ram = qemu_ram_alloc(NULL, "onenand.ram", 0xc000 << s->shift); |