[PATCH] fix endless loop in storage-addon

Danny Kukawka danny.kukawka at web.de
Thu Nov 29 07:11:43 PST 2007


Hi,

this patches fixes a endless loop if you attach e.g. a USB floppy device which 
already contains a floppy media (because of the initial media_status). The 
result is that the media in the device get never detected until the state 
change again (remove/readd the media to the device).

IMO this could theoretically also happen on other devices which already 
contains a media when attached.

Danny

 addon-storage.c |    8 ++++++++
 1 file changed, 8 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-addon-storage_state_for_floppy.diff
Type: text/x-diff
Size: 615 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071129/133f7f96/attachment.diff 


More information about the hal mailing list