From: Takashi Iwai Subject: Re: [patch] ALSA: isa: not allocating enough space Date: Wed, 13 Nov 2013 09:29:16 +0100 Message-ID: References: <20131113075838.GK25541@elgon.mountain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20131113075838.GK25541@elgon.mountain> Sender: kernel-janitors-owner@vger.kernel.org To: Dan Carpenter Cc: Jaroslav Kysela , Bill Pemberton , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org List-Id: alsa-devel@alsa-project.org At Wed, 13 Nov 2013 10:58:38 +0300, Dan Carpenter wrote: > > We allocate only 4 bytes here "sizeof(int)" instead of WF_MSAMPLE_BYTES > (259) which was intended. > > Signed-off-by: Dan Carpenter Thanks, applied. Takashi > > diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c > index a2f87f9..e5db001 100644 > --- a/sound/isa/wavefront/wavefront_synth.c > +++ b/sound/isa/wavefront/wavefront_synth.c > @@ -1196,7 +1196,7 @@ wavefront_send_multisample (snd_wavefront_t *dev, wavefront_patch_info *header) > int num_samples; > unsigned char *msample_hdr; > > - msample_hdr = kmalloc(sizeof(WF_MSAMPLE_BYTES), GFP_KERNEL); > + msample_hdr = kmalloc(WF_MSAMPLE_BYTES, GFP_KERNEL); > if (! msample_hdr) > return -ENOMEM; > >