From db14c17e91ce8d53a6f1313dc2750eafed55a9cb Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 10 Jul 2001 21:28:14 +0000 Subject: [PATCH] Fix buffer overrun problem --- comedi/drivers/daqboard2000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index 50cf8790..50213f9f 100644 --- 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 -- 2.26.2