diff options
author | Avi Kivity <avi@redhat.com> | 2011-08-09 09:54:22 +0300 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2011-08-09 08:57:21 +0200 |
commit | 032a7c4e425f1f0b71942768696f53f93947f8fa (patch) | |
tree | 98095435299aa13ce5a9585f3a00946347d56aa5 /hw | |
parent | 986563b173ca2d4bd47b10455b19c86e5cd5bba2 (diff) | |
download | qemu-032a7c4e425f1f0b71942768696f53f93947f8fa.zip qemu-032a7c4e425f1f0b71942768696f53f93947f8fa.tar.gz qemu-032a7c4e425f1f0b71942768696f53f93947f8fa.tar.bz2 |
lance: unbreak after memory API conversion
The conversion passed the wrong opaque pointer, causing a crash on first use.
Pass the correct opaque.
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/lance.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ static int lance_init(SysBusDevice *dev) SysBusPCNetState *d = FROM_SYSBUS(SysBusPCNetState, dev); PCNetState *s = &d->state; - memory_region_init_io(&s->mmio, &lance_mem_ops, s, "lance-mmio", 4); + memory_region_init_io(&s->mmio, &lance_mem_ops, d, "lance-mmio", 4); qdev_init_gpio_in(&dev->qdev, parent_lance_reset, 1); |