Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219686
b: refs/heads/master
c: cd6541c
h: refs/heads/master
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 3f48a2b commit d099d2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: c2c6a66a51da4d7311aa4508c1cd56c2397cf708
refs/heads/master: cd6541c03d0777963615d00b22ff8a4c8ee8d601
7 changes: 5 additions & 2 deletions trunk/drivers/staging/tm6000/tm6000-alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ int tm6000_audio_init(struct tm6000_core *dev)

rc = snd_pcm_new(card, "TM6000 Audio", 0, 0, 1, &pcm);
if (rc < 0)
goto error;
goto error_chip;

pcm->info_flags = 0;
pcm->private_data = chip;
Expand All @@ -413,12 +413,15 @@ int tm6000_audio_init(struct tm6000_core *dev)

rc = snd_card_register(card);
if (rc < 0)
goto error;
goto error_chip;

dprintk(1,"Registered audio driver for %s\n", card->longname);

return 0;

error_chip:
kfree(chip);
dev->adev = NULL;
error:
snd_card_free(card);
return rc;
Expand Down

0 comments on commit d099d2e

Please sign in to comment.