projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a94c5cc
)
comedi_open: Fix null pointer dereference.
author
Ian Abbott
<abbotti@mev.co.uk>
Mon, 9 Feb 2009 16:51:38 +0000
(16:51 +0000)
committer
Ian Abbott
<abbotti@mev.co.uk>
Mon, 9 Feb 2009 16:51:38 +0000
(16:51 +0000)
comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/comedi/comedi_fops.c
b/comedi/comedi_fops.c
index 7fc40ca1a1defd91bd324305156b4caff86ad578..198f4d992df645a45556847ab95165a6a96443da 100644
(file)
--- a/
comedi/comedi_fops.c
+++ b/
comedi/comedi_fops.c
@@
-1756,7
+1756,7
@@
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;