patch-2.4.20 linux-2.4.20/drivers/sound/cs4232.c

Next file: linux-2.4.20/drivers/sound/emu10k1/cardwi.c
Previous file: linux-2.4.20/drivers/sound/btaudio.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/sound/cs4232.c linux-2.4.20/drivers/sound/cs4232.c
@@ -158,7 +158,7 @@
 	 * method conflicts with possible PnP support in the OS. For this reason 
 	 * driver is just a temporary kludge.
 	 *
-	 * Also the Cirrus/Crystal method doesnt always work. Try ISA PnP first ;)
+	 * Also the Cirrus/Crystal method doesn't always work. Try ISA PnP first ;)
 	 */
 
 	/*
@@ -444,6 +444,7 @@
 	isapnpcfg->io_base	= dev->resource[0].start;
 	if (probe_cs4232(isapnpcfg,TRUE) == 0) {
 		printk(KERN_ERR "cs4232: ISA PnP card found, but not detected?\n");
+		kfree(isapnpcfg);
 		return -ENODEV;
 	}
 	attach_cs4232(isapnpcfg);

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