提交 032a7c4e 编写于 作者: A Avi Kivity 提交者: Edgar E. Iglesias

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: NAvi Kivity <avi@redhat.com>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 986563b1
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册