patch-2.3.16 linux/drivers/char/ppdev.c

Next file: linux/drivers/char/qpmouse.c
Previous file: linux/drivers/char/planb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/drivers/char/ppdev.c linux/drivers/char/ppdev.c
@@ -502,8 +502,8 @@
 	}
 
 	if (pp->pdev) {
-		kfree (pp->pdev->name);
 		parport_unregister_device (pp->pdev);
+		kfree (pp->pdev->name);
 		pp->pdev = NULL;
 		printk (KERN_DEBUG CHRDEV "%x: unregistered pardevice\n",
 			minor);

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