[alsa-devel] [PATCH] sc6000: 2 minor fixes

Krzysztof Helt krzysztof.h1 at gmail.com
Thu Sep 13 23:15:07 CEST 2007


From: Krzysztof Helt <krzysztof.h1 at wp.pl>

This patch zeroes buffer for the card name and
fixes incorrect jump in the probe function.

Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>

---

diff -urp alsa-driver-1.0.15rc2/sound/isa/sc6000.c
alsa-driver-new/sound/isa/sc6000.c
--- alsa-driver-1.0.15rc2/sound/isa/sc6000.c	2007-09-12 13:33:51.000000000 +0200
+++ alsa-driver-new/sound/isa/sc6000.c	2007-09-13 23:14:43.288766750 +0200
@@ -351,6 +351,7 @@ static int __devinit sc6000_init_board(c
 		return err;
 	}

+	memset(answer, 0, sizeof(answer));
 	err = sc6000_dsp_get_answer(vport, GET_DSP_COPYRIGHT, answer, 15);
 	if (err <= 0) {
 		snd_printk(KERN_ERR "sc6000_dsp_copyright: failed!\n");
@@ -529,7 +530,7 @@ static int __devinit snd_sc6000_probe(st
 		snd_printk(KERN_ERR PFX
 			   "SC-6000 port I/O port region is already in use.\n");
 		err = -EBUSY;
-		goto err_unmap2;
+		goto err_unmap1;
 	}
 	vmss_port = devm_ioport_map(devptr, mss_port[dev], 4);
 	if (!vport) {


More information about the Alsa-devel mailing list