aboutsummaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 15:32:38 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-17 15:32:38 +0000
commit257514ddce752fe0b4aeb4b7957bc5661eadbef8 (patch)
tree26a6a4bc376c31a33886ba7f418e1fc0adabfa80 /hw/sd.c
parent5747c0733dd7ebbaa7a719d5cb1cd22565cb0cb0 (diff)
sd.c build fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3673 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 5be75858e3..25ae9956b6 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -371,8 +371,8 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv)
sd->bdrv = bdrv;
- if (s->wp_groups)
- qemu_free(s->wp_groups);
+ if (sd->wp_groups)
+ qemu_free(sd->wp_groups);
sd->wp_switch = bdrv_is_read_only(bdrv);
sd->wp_groups = (int *) qemu_mallocz(sizeof(int) * sect);
memset(sd->wp_groups, 0, sizeof(int) * sect);
@@ -390,7 +390,7 @@ static void sd_cardchange(void *opaque)
qemu_set_irq(sd->inserted_cb, bdrv_is_inserted(sd->bdrv));
if (bdrv_is_inserted(sd->bdrv)) {
sd_reset(sd, sd->bdrv);
- qemu_set_irq(s->readonly_cb, sd->wp_switch);
+ qemu_set_irq(sd->readonly_cb, sd->wp_switch);
}
}