diff options
author | Mark Brown <broonie@kernel.org> | 2021-06-09 13:52:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-09 13:52:35 +0300 |
commit | c441bfb5f2866de71e092c1b9d866a65978dfe1a (patch) | |
tree | 51aca8f1e4b2de5819d4b83a4646f8448de75546 /sound/isa/sb/sb16_csp.c | |
parent | bcc0f0c078771e983a7e602eb14efa02f811445f (diff) | |
parent | c4681547bcce777daf576925a966ffa824edd09d (diff) | |
download | linux-c441bfb5f2866de71e092c1b9d866a65978dfe1a.tar.xz |
Merge tag 'v5.13-rc3' into asoc-5.13
Linux 5.13-rc3
Diffstat (limited to 'sound/isa/sb/sb16_csp.c')
-rw-r--r-- | sound/isa/sb/sb16_csp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/isa/sb/sb16_csp.c b/sound/isa/sb/sb16_csp.c index 8635a2b6b36b..4789345a8fdd 100644 --- a/sound/isa/sb/sb16_csp.c +++ b/sound/isa/sb/sb16_csp.c @@ -1045,10 +1045,14 @@ static int snd_sb_qsound_build(struct snd_sb_csp * p) spin_lock_init(&p->q_lock); - if ((err = snd_ctl_add(card, p->qsound_switch = snd_ctl_new1(&snd_sb_qsound_switch, p))) < 0) + if ((err = snd_ctl_add(card, p->qsound_switch = snd_ctl_new1(&snd_sb_qsound_switch, p))) < 0) { + p->qsound_switch = NULL; goto __error; - if ((err = snd_ctl_add(card, p->qsound_space = snd_ctl_new1(&snd_sb_qsound_space, p))) < 0) + } + if ((err = snd_ctl_add(card, p->qsound_space = snd_ctl_new1(&snd_sb_qsound_space, p))) < 0) { + p->qsound_space = NULL; goto __error; + } return 0; |