Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100283
b: refs/heads/master
c: 2d863e9
h: refs/heads/master
i:
  100281: 1c857a6
  100279: 6f12125
v: v3
  • Loading branch information
Jonathan Corbet committed Jun 20, 2008
1 parent b042545 commit f13577f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 309c4551c0fa0897d5343c36cbfbfa39f1f41b88
refs/heads/master: 2d863e92ec1b1deb8167d7f5266f754f258e876a
3 changes: 3 additions & 0 deletions trunk/drivers/char/viotape.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <linux/completion.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/smp_lock.h>

#include <asm/uaccess.h>
#include <asm/ioctls.h>
Expand Down Expand Up @@ -687,6 +688,7 @@ static int viotap_open(struct inode *inode, struct file *file)
if (op == NULL)
return -ENOMEM;

lock_kernel()
get_dev_info(file->f_path.dentry->d_inode, &devi);

/* Note: We currently only support one mode! */
Expand Down Expand Up @@ -717,6 +719,7 @@ static int viotap_open(struct inode *inode, struct file *file)

free_op:
free_op_struct(op);
unlock_kernel();
return ret;
}

Expand Down

0 comments on commit f13577f

Please sign in to comment.