m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'surface.c')
-rw-r--r--surface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/surface.c b/surface.c
index 87304ab..27e1eae 100644
--- a/surface.c
+++ b/surface.c
@@ -22,13 +22,13 @@ long draw_lines(struct file *filp, unsigned long arg)
param = (struct doomdev_surf_ioctl_draw_lines *) arg;
lines = (struct doomdev_line *) param->lines_ptr;
- mutex_lock(&surface_data->doom_data->mutex);
+ mutex_lock(&surface_data->doom_data->cmd_mutex);
for (i = 0; i < param->lines_num; i++) {
draw_line(surface_data, lines[i]);
}
- mutex_unlock(&surface_data->doom_data->mutex);
+ mutex_unlock(&surface_data->doom_data->cmd_mutex);
return param->lines_num;
}
@@ -58,7 +58,7 @@ ssize_t surface_read(struct file *filp, char __user *buf, size_t count,
count = surface_data->surface_size - *offset;
}
- mutex_lock(&surface_data->doom_data->mutex);
+ mutex_lock(&surface_data->doom_data->ping_mutex);
ping_sync(surface_data->doom_data->iomem);
down(&surface_data->doom_data->pong_sem);
@@ -68,7 +68,7 @@ ssize_t surface_read(struct file *filp, char __user *buf, size_t count,
*offset += count - not_written;
- mutex_unlock(&surface_data->doom_data->mutex);
+ mutex_unlock(&surface_data->doom_data->ping_mutex);
return count - not_written;
}