Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354263
b: refs/heads/master
c: 1046406
h: refs/heads/master
i:
  354261: 3f8578e
  354259: 2809ca6
  354255: 471427e
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 0c472e9 commit 02d5b08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 12e9a5f1df9bf274fb49fb8453196e9fe51c8d77
refs/heads/master: 104640606be0df6bcdb5ec7960a9c3c1278117ae
6 changes: 4 additions & 2 deletions trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -2358,8 +2358,10 @@ int comedi_alloc_subdevice_minor(struct comedi_device *dev,
if (!info)
return -ENOMEM;
info->device = dev;
info->read_subdevice = s;
info->write_subdevice = s;
if (s->subdev_flags & SDF_CMD_READ)
info->read_subdevice = s;
if (s->subdev_flags & SDF_CMD_WRITE)
info->write_subdevice = s;
spin_lock(&comedi_file_info_table_lock);
for (i = COMEDI_FIRST_SUBDEVICE_MINOR; i < COMEDI_NUM_MINORS; ++i) {
if (comedi_file_info_table[i] == NULL) {
Expand Down

0 comments on commit 02d5b08

Please sign in to comment.