patch-2.3.49 linux/drivers/parport/daisy.c

Next file: linux/drivers/parport/ieee1284.c
Previous file: linux/drivers/net/yellowfin.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.48/linux/drivers/parport/daisy.c linux/drivers/parport/daisy.c
@@ -160,10 +160,10 @@
 
 	while (prev) {
 		dev = prev->next;
-		if (dev && dev->port == port)
+		if (dev && dev->port == port) {
 			prev->next = dev->next;
-
-		kfree (dev);
+			kfree (dev);
+		}
 		prev = prev->next;
 	}
 

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