Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22778
b: refs/heads/master
c: 202728d
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Jaroslav Kysela committed Mar 22, 2006
1 parent 81d27a7 commit 06d585d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3e964432f56f05a8ef639902796e476456b230ad
refs/heads/master: 202728d783a0fc180e7141d18186eeae167218a1
1 change: 1 addition & 0 deletions trunk/sound/drivers/serial-u16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ static int __init snd_uart16550_create(struct snd_card *card,

if ((err = snd_uart16550_detect(uart)) <= 0) {
printk(KERN_ERR "no UART detected at 0x%lx\n", iobase);
snd_uart16550_free(uart);
return -ENODEV;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/sound/isa/es18xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2083,6 +2083,7 @@ static int __devinit snd_audiodrive_pnp(int dev, struct snd_audiodrive *acard,
err = pnp_activate_dev(acard->devc);
if (err < 0) {
snd_printk(KERN_ERR PFX "PnP control configure failure (out of resources?)\n");
kfree(cfg);
return -EAGAIN;
}
snd_printdd("pnp: port=0x%lx\n", pnp_port_start(acard->devc, 0));
Expand Down
10 changes: 7 additions & 3 deletions trunk/sound/pci/cs46xx/dsp_spos.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip)

if (ins->symbol_table.symbols == NULL) {
cs46xx_dsp_spos_destroy(chip);
return NULL;
goto error;
}

ins->code.offset = 0;
Expand All @@ -246,7 +246,7 @@ struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip)

if (ins->code.data == NULL) {
cs46xx_dsp_spos_destroy(chip);
return NULL;
goto error;
}

ins->nscb = 0;
Expand All @@ -257,7 +257,7 @@ struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip)

if (ins->modules == NULL) {
cs46xx_dsp_spos_destroy(chip);
return NULL;
goto error;
}

/* default SPDIF input sample rate
Expand All @@ -280,6 +280,10 @@ struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip)
/* left and right validity bits */ (1 << 13) | (1 << 12);

return ins;

error:
kfree(ins);
return NULL;
}

void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip)
Expand Down

0 comments on commit 06d585d

Please sign in to comment.