Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141471
b: refs/heads/master
c: 9792007
h: refs/heads/master
i:
  141469: 9d248ff
  141467: 7af5a81
  141463: b3c96ef
  141455: b56469e
  141439: c2d9fe7
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent b7a1ab1 commit 7abf6ef
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 56d92c60e6dc708541711e9de4993e7d527d08e8
refs/heads/master: 979200719d35934367bbf97d9b7d22d5b5281dda
3 changes: 2 additions & 1 deletion trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,8 @@ static int comedi_open(struct inode *inode, struct file *file)
const unsigned minor = iminor(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 = dev_file_info ? dev_file_info->device : NULL;

if (dev == NULL) {
DPRINTK("invalid minor number\n");
return -ENODEV;
Expand Down

0 comments on commit 7abf6ef

Please sign in to comment.