Hello,
I've found a memoryleak in the usb part of the linux kernel!
I've found it in 2.4.19 but it appears also in the actual 2.4.29!
What happend:
I had a defect usb hub which produced a disconnect and connect
every 20 seconds. There was a keyboard connected to the hub.
This was not recogniced because we logoed on and worked with
ssh over the network. After some days the kernel run out of memory.
So I added some debug code to the kernel and (after some weeks)
found out that the structure usb_device will never be released!
On a disconnect the function usb_disconnect is called which calls
the driver specific disconnect funktion (in my case hid_disconnct).
The hid_disconnect does not release the memory for the hid_device.
After the disconnect the function usb_driver_release_interface is
called. This funktion writes a NULL pointer to iface->private_data
which holdes the hid_device structure and the memory disappers
without ever beeing released! I think the same problem occurs in the
storage part of the usb and maybe others!
Mit freundlichen Gruessen / Best Regards
Dr. JOHANNES HEIDENHAIN GmbH
Walter Ubel
__________________________
mailto:[EMAIL PROTECTED]
tel +49 / 8669 / 31-1791
________________________
DR. JOHANNES HEIDENHAIN GmbH
Dr.-Johannes-Heidenhain-Str. 5
D-83301 Traunreut
PS: Pleas let me know if you agree to the fact I mentioned!
-------------------------------------------------------
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_ide95&alloc_id396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel