ALSA: isa: not allocating enough space
Subsystems (2)
PATCH 1/1 ALSA: isa: not allocating enough space
We allocate only 4 bytes here "sizeof(int)" instead of WF_MSAMPLE_BYTES
(259) which was intended.
Signed-off-by Dan Carpenter <[email protected]>
sound/isa/wavefront/wavefront_synth.c +1 -1
@@ -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 ;
Takashi Iwai
AppliedAt Wed, 13 Nov 2013 10:58:38 +0300,
Quoted 5 lines · Dan Carpenter
We allocate only 4 bytes here "sizeof(int)" instead of
WF_MSAMPLE_BYTES
(259) which was intended.Signed-off-by Dan Carpenter <[email protected]>
Thanks, applied.
Takashi
Quoted 15 lines
sound/isa/wavefront/wavefront_synth.c +1
-1@@ -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 ;