On Wed, 9 Feb 2005, Joaquin Durand Gomez wrote: > Hello! > > I'm developing a linux driver for a USB fingerprint sensor. > Right now the driver is working correctly, capturing fingerprint images > from the sensor and sending them to a user-space application. > The problem I'm having is that after a random number of finger captures > the driver itself crashes or makes other processes crash. I get an oops > on other processes that could be anything from the file system to the X > server.
> I ran out of ideas of what to check in order to solve my problem. I > made sure all the memory is deallocated correctly and all the buffers > are protected with spin locks. And because most of the crashes occur on > other processes I don't know how to debug this. > > Does somebody know what could be causing the crashes or have > experienced something similar? I once had to solve a similar problem with another driver. It would randomly crash my X server. The answer turned out to be that the driver was writing to a region of memory that had previously been deallocated. Maybe your driver is doing something like that. Incidentally, the code extract you posted shows that the routine doesn't free tasklet_data if tasklet_data->tasklet_buffer can't be allocated. Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
