* [GIT PULL] ALSA fix for 2.6.26-rc6
@ 2008-06-16 16:50 Takashi Iwai
0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2008-06-16 16:50 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Hi Linus,
please pull ALSA fix for 2.6.26-rc6 from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git for-linus
Thanks!
Takashi
===
Clemens Ladisch (1):
sound: oxygen: fix NULL pointer dereference when loading snd-oxygen
sound/pci/oxygen/oxygen_mixer.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/sound/pci/oxygen/oxygen_mixer.c b/sound/pci/oxygen/oxygen_mixer.c
index cc0cdda..6facac5 100644
--- a/sound/pci/oxygen/oxygen_mixer.c
+++ b/sound/pci/oxygen/oxygen_mixer.c
@@ -936,11 +936,13 @@ static int add_controls(struct oxygen *chip,
for (i = 0; i < count; ++i) {
template = controls[i];
- err = chip->model->control_filter(&template);
- if (err < 0)
- return err;
- if (err == 1)
- continue;
+ if (chip->model->control_filter) {
+ err = chip->model->control_filter(&template);
+ if (err < 0)
+ return err;
+ if (err == 1)
+ continue;
+ }
if (!strcmp(template.name, "Master Playback Volume") &&
chip->model->dac_tlv) {
template.tlv.p = chip->model->dac_tlv;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-06-16 16:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-16 16:50 [GIT PULL] ALSA fix for 2.6.26-rc6 Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®