Problem with char driver write function - infinite loop
I've a problem with a really simple write function in my first char driver.
The function is as follows:
So the write function seems to be call infinite times.
By the printk in the write function i can see that behavior.
The failure goes from a simple echo > /dev/device to an C program using fwrite.
I'm grateful for each hint.
Problem fixed.. I'be to return the values of the written bytes and not of the not written.
|All times are GMT -5. The time now is 12:45 AM.|