Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141467
b: refs/heads/master
c: 53b670a
h: refs/heads/master
i:
  141465: abce3bd
  141463: b3c96ef
v: v3
  • Loading branch information
Frank Mori Hess authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 978f604 commit 7af5a81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3cb729ef4a192f04179f780122df78ef1ffe779
refs/heads/master: 53b670a75bef4bf6484bbf6ca6a896c365676fd4
6 changes: 5 additions & 1 deletion trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,13 @@ static int comedi_ioctl(struct inode *inode, struct file *file,
const unsigned minor = iminor(file->f_dentry->d_inode);
struct comedi_device_file_info *dev_file_info =
comedi_get_device_file_info(minor);
comedi_device *dev = dev_file_info->device;
comedi_device *dev;
int rc;

if (dev_file_info == NULL || dev_file_info->device == NULL)
return -ENODEV;
dev = dev_file_info->device;

mutex_lock(&dev->mutex);

/* Device config is special, because it must work on
Expand Down

0 comments on commit 7af5a81

Please sign in to comment.