Skip to contentSkip to conversation

Bug#237747: hotplug: ieee1394.agent fails to identify any FireWire device

DISCUSSION Fumitoshi UKAI 1 participant 1 message Mar 13, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

recent version of ieee1394.agent has misplaced conversion code in ieee1394_map_modules.

May I apply this patch?

etc/hotplug/ieee1394.agent +4 -5
diff -ruN hotplug-2004_03_11.orig/etc/hotplug/ieee1394.agent hotplug-2004_03_11/etc/hotplug/ieee1394.agent
@@ -55,17 +55,16 @@
 {
     local module ignored
 
-    # convert from hex to dec
-    match_flags=$(($match_flags))
-    vendor_id=$(($vendor_id)); model_id=$(($model_id))
-    specifier_id=$(($specifier_id)); version=$(($version))
-
     # comment line lists (current) pci_device_id field names
     read ignored
 
     while read module match_flags vendor_id model_id specifier_id version
     do
 	: check match for $module
+	# convert from hex to dec
+	match_flags=$(($match_flags))
+	vendor_id=$(($vendor_id)); model_id=$(($model_id))
+	specifier_id=$(($specifier_id)); version=$(($version))
 
 	: vendor_id $vendor_id $device_vendor_id
 	if [ $(($match_flags & $MATCH_VENDOR_ID)) -ne 0 -a $vendor_id -ne $device_vendor_id ]; then

Thanks,
Fumitoshi UKAI

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel