summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console/console.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/console/console.c b/console/console.c
index bac9eb8e..0b1f42c4 100644
--- a/console/console.c
+++ b/console/console.c
@@ -227,7 +227,7 @@ vcons_lookup (cons_t cons, int id, int create, vcons_t *r_vcons)
vcons = calloc (1, sizeof (struct vcons));
if (!vcons)
{
- mutex_unlock (&vcons->cons->lock);
+ mutex_unlock (&cons->lock);
return ENOMEM;
}
vcons->cons = cons;
@@ -244,7 +244,7 @@ vcons_lookup (cons_t cons, int id, int create, vcons_t *r_vcons)
{
free (vcons->name);
free (vcons);
- mutex_unlock (&vcons->cons->lock);
+ mutex_unlock (&cons->lock);
return err;
}
@@ -254,7 +254,7 @@ vcons_lookup (cons_t cons, int id, int create, vcons_t *r_vcons)
display_destroy (vcons->display);
free (vcons->name);
free (vcons);
- mutex_unlock (&vcons->cons->lock);
+ mutex_unlock (&cons->lock);
return err;
}