diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-13 02:58:38 -0500 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2013-11-13 03:28:31 -0500 |
| commit | 8ede6651066a81c15fba3c0c7c942aa6f9614091 (patch) | |
| tree | 7788d87aed661e39f5289da70e16c3f6295e5773 | |
| parent | 11b3fdacbac0df6a3531e2b63c876e8442cea2a8 (diff) | |
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 <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/isa/wavefront/wavefront_synth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/wavefront/wavefront_synth.c b/sound/isa/wavefront/wavefront_synth.c index a2f87f9488ee..e5db001363ee 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) | |||
| 1196 | int num_samples; | 1196 | int num_samples; |
| 1197 | unsigned char *msample_hdr; | 1197 | unsigned char *msample_hdr; |
| 1198 | 1198 | ||
| 1199 | msample_hdr = kmalloc(sizeof(WF_MSAMPLE_BYTES), GFP_KERNEL); | 1199 | msample_hdr = kmalloc(WF_MSAMPLE_BYTES, GFP_KERNEL); |
| 1200 | if (! msample_hdr) | 1200 | if (! msample_hdr) |
| 1201 | return -ENOMEM; | 1201 | return -ENOMEM; |
| 1202 | 1202 | ||
