Re: [alsa-devel] [PATCH] check for the kzalloc return value
22 Oct
2012
22 Oct
'12
4:33 p.m.
At Mon, 22 Oct 2012 17:05:53 +0400, Denis Kirjanov wrote:
Signed-off-by: Denis Kirjanov kirjanov@gmail.com
Thanks, applied.
Takashi
sound/pci/als300.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/sound/pci/als300.c b/sound/pci/als300.c index 68c4469..e1f74d4 100644 --- a/sound/pci/als300.c +++ b/sound/pci/als300.c @@ -394,6 +394,8 @@ static int snd_als300_playback_open(struct snd_pcm_substream *substream) struct snd_als300_substream_data *data = kzalloc(sizeof(*data), GFP_KERNEL);
- if (!data)
snd_als300_dbgcallenter(); chip->playback_substream = substream; runtime->hw = snd_als300_playback_hw;return -ENOMEM;
@@ -425,6 +427,8 @@ static int snd_als300_capture_open(struct snd_pcm_substream *substream) struct snd_als300_substream_data *data = kzalloc(sizeof(*data), GFP_KERNEL);
- if (!data)
snd_als300_dbgcallenter(); chip->capture_substream = substream; runtime->hw = snd_als300_capture_hw;return -ENOMEM;
-- 1.7.9.5
4444
Age (days ago)
4444
Last active (days ago)
0 comments
1 participants
participants (1)
-
Takashi Iwai