diff options
Diffstat (limited to 'drivers/char/vc_screen.c')
| -rw-r--r-- | drivers/char/vc_screen.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/char/vc_screen.c b/drivers/char/vc_screen.c index c1791a63d99d..3e92ac22b583 100644 --- a/drivers/char/vc_screen.c +++ b/drivers/char/vc_screen.c | |||
| @@ -115,7 +115,7 @@ vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
| 115 | /* Select the proper current console and verify | 115 | /* Select the proper current console and verify |
| 116 | * sanity of the situation under the console lock. | 116 | * sanity of the situation under the console lock. |
| 117 | */ | 117 | */ |
| 118 | acquire_console_sem(); | 118 | acquire_console_mutex(); |
| 119 | 119 | ||
| 120 | attr = (currcons & 128); | 120 | attr = (currcons & 128); |
| 121 | currcons = (currcons & 127); | 121 | currcons = (currcons & 127); |
| @@ -246,9 +246,9 @@ vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
| 246 | * the pagefault handling code may want to call printk(). | 246 | * the pagefault handling code may want to call printk(). |
| 247 | */ | 247 | */ |
| 248 | 248 | ||
| 249 | release_console_sem(); | 249 | release_console_mutex(); |
| 250 | ret = copy_to_user(buf, con_buf_start, orig_count); | 250 | ret = copy_to_user(buf, con_buf_start, orig_count); |
| 251 | acquire_console_sem(); | 251 | acquire_console_mutex(); |
| 252 | 252 | ||
| 253 | if (ret) { | 253 | if (ret) { |
| 254 | read += (orig_count - ret); | 254 | read += (orig_count - ret); |
| @@ -264,7 +264,7 @@ vcs_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) | |||
| 264 | if (read) | 264 | if (read) |
| 265 | ret = read; | 265 | ret = read; |
| 266 | unlock_out: | 266 | unlock_out: |
| 267 | release_console_sem(); | 267 | release_console_mutex(); |
| 268 | mutex_unlock(&con_buf_mtx); | 268 | mutex_unlock(&con_buf_mtx); |
| 269 | return ret; | 269 | return ret; |
| 270 | } | 270 | } |
| @@ -289,7 +289,7 @@ vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | |||
| 289 | /* Select the proper current console and verify | 289 | /* Select the proper current console and verify |
| 290 | * sanity of the situation under the console lock. | 290 | * sanity of the situation under the console lock. |
| 291 | */ | 291 | */ |
| 292 | acquire_console_sem(); | 292 | acquire_console_mutex(); |
| 293 | 293 | ||
| 294 | attr = (currcons & 128); | 294 | attr = (currcons & 128); |
| 295 | currcons = (currcons & 127); | 295 | currcons = (currcons & 127); |
| @@ -324,9 +324,9 @@ vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | |||
| 324 | /* Temporarily drop the console lock so that we can read | 324 | /* Temporarily drop the console lock so that we can read |
| 325 | * in the write data from userspace safely. | 325 | * in the write data from userspace safely. |
| 326 | */ | 326 | */ |
| 327 | release_console_sem(); | 327 | release_console_mutex(); |
| 328 | ret = copy_from_user(con_buf, buf, this_round); | 328 | ret = copy_from_user(con_buf, buf, this_round); |
| 329 | acquire_console_sem(); | 329 | acquire_console_mutex(); |
| 330 | 330 | ||
| 331 | if (ret) { | 331 | if (ret) { |
| 332 | this_round -= ret; | 332 | this_round -= ret; |
| @@ -450,7 +450,7 @@ vcs_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) | |||
| 450 | ret = written; | 450 | ret = written; |
| 451 | 451 | ||
| 452 | unlock_out: | 452 | unlock_out: |
| 453 | release_console_sem(); | 453 | release_console_mutex(); |
| 454 | 454 | ||
| 455 | mutex_unlock(&con_buf_mtx); | 455 | mutex_unlock(&con_buf_mtx); |
| 456 | 456 | ||
