/[linux-patches]/genpatches-2.6/historical/2.6.10/2505_alsa-vx-corruption.patch
Gentoo

Contents of /genpatches-2.6/historical/2.6.10/2505_alsa-vx-corruption.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download) (as text)
Sat Jun 11 23:16:54 2005 UTC (15 years ago) by dsd
File MIME type: text/x-diff
File size: 1065 byte(s)
Import historical releases
1 # This is a BitKeeper generated diff -Nru style patch.
2 #
3 # ChangeSet
4 # 2005/01/03 11:19:17+01:00 perex@suse.cz
5 # [ALSA] Fix memory corruption
6 #
7 # Digigram VX core
8 # Fixed the memory corruption by the wrong sized kmalloc.
9 #
10 # Signed-off-by: Takashi Iwai <tiwai@suse.de>
11 #
12 # sound/drivers/vx/vx_core.c
13 # 2004/12/20 04:03:54+01:00 perex@suse.cz +1 -1
14 # [ALSA] Fix memory corruption
15 #
16 # D:2004/12/20 11:03:54
17 # C:Digigram VX core
18 # F:drivers/vx/vx_core.c:1.9->1.10
19 # L:Fixed the memory corruption by the wrong sized kmalloc.
20 # Signed-off-by: Takashi Iwai <tiwai@suse.de>
21 #
22 diff -Nru a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
23 --- a/sound/drivers/vx/vx_core.c 2005-01-22 22:17:34 -08:00
24 +++ b/sound/drivers/vx/vx_core.c 2005-01-22 22:17:34 -08:00
25 @@ -734,7 +734,7 @@
26
27 snd_assert(card && hw && ops, return NULL);
28
29 - chip = kcalloc(1, sizeof(chip) + extra_size, GFP_KERNEL);
30 + chip = kcalloc(1, sizeof(*chip) + extra_size, GFP_KERNEL);
31 if (! chip) {
32 snd_printk(KERN_ERR "vx_core: no memory\n");
33 return NULL;

  ViewVC Help
Powered by ViewVC 1.1.20