(no subject)

I am returning to my driver for the Alphi Technologies AD8

Previously I asked about downloading a file and I added the following code:

                if(it->options[0] && it->options[1]){
                        size = it->options[1];
                        dev->private->firmware = kmalloc(size,GFP_KERNEL);
                        if(copy_from_user(dev->private->firmware,
                                          (unsigned char *)it->options[0],
                                          size)){
                                printk("comedi_: usbdaqdt%d: ptr to firmware 
invalid\n",
                                       index);
                                ret=-EFAULT;
                                return ret;
                        }

I have now upgaded from comedi-0.7.66 to comedi-0.7.68

The copy from user is not executed as options[0] = NULL and options[1] = 0

My comedi_config command is:

comedi_config -i Ad8.OUT /dev/comedi0 Alphi_Ad8

Any ideas would be welcome

Anne Smorthit

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail

Received on 2004-06-17Z12:10:57