projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15cdd1
)
Fix buffer overrun problem
author
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 21:28:14 +0000
(21:28 +0000)
committer
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 21:28:14 +0000
(21:28 +0000)
comedi/drivers/daqboard2000.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/daqboard2000.c
b/comedi/drivers/daqboard2000.c
index 50cf8790cb05ae26e6732e253f5088710bac2b80..50213f9fa7643efaab5bf65feab2a7212b32758d 100644
(file)
--- a/
comedi/drivers/daqboard2000.c
+++ b/
comedi/drivers/daqboard2000.c
@@
-729,7
+729,7
@@
static int daqboard2000_attach(comedi_device *dev, comedi_devconfig *it)
*/
if(it->options[0] && it->options[1]){
void *ptr;
- int size = it->options[1];
+
unsigned
int size = it->options[1];
/* Note: using copy_from_user here is a hack. I would prefer
* to have a generic solution for copying extended data at