patch-2.4.17 linux/drivers/ieee1394/hosts.c

Next file: linux/drivers/ieee1394/ieee1394_core.c
Previous file: linux/drivers/ide/ide-tape.c
Back to the patch index
Back to the overall index

diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/drivers/ieee1394/hosts.c linux/drivers/ieee1394/hosts.c
@@ -170,10 +170,10 @@
 	list_for_each(hlh, &tmpl->hosts) {
 		host = list_entry(hlh, struct hpsb_host, list);
                 if (host->initialized) {
+                        highlevel_remove_host(host);
+
                         host->initialized = 0;
                         abort_requests(host);
-
-                        highlevel_remove_host(host);
 
                         tmpl->release_host(host);
                         while (test_bit(0, &host->timeout_tq.sync)) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)