projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d261154
)
Staging: comedi: COMEDI_BUFINFO with no async - report no bytes read or written
author
Ian Abbott
<
[email protected]
>
Wed, 19 May 2010 17:09:49 +0000
(18:09 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 4 Jun 2010 20:38:53 +0000
(13:38 -0700)
When the COMEDI_BUFINFO ioctl is used on a subdevice without
asynchronous streaming command support, set 'bytes_read = 0' and
'bytes_written = 0' in the buffer info returned back to the user.
Signed-off-by: Ian Abbott <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/comedi/comedi_fops.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/comedi_fops.c
b/drivers/staging/comedi/comedi_fops.c
index 39ed22b802294f6285fdb2ea83cc88ec7c74a51f..75256251250d75cc97858bab1c7575ac5c52119b 100644
(file)
--- a/
drivers/staging/comedi/comedi_fops.c
+++ b/
drivers/staging/comedi/comedi_fops.c
@@
-584,6
+584,8
@@
static int do_bufinfo_ioctl(struct comedi_device *dev,
bi.buf_read_ptr = 0;
bi.buf_write_count = 0;
bi.buf_read_count = 0;
+ bi.bytes_read = 0;
+ bi.bytes_written = 0;
goto copyback;
}