2005-01-11 23:43:30

by Domen Puncer

[permalink] [raw]
Subject: [patch 10/11] gus_wave.c - vfree() checking cleanups



gus_wave.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>


Signed-off-by: Domen Puncer <[email protected]>
---


kj-domen/sound/oss/gus_wave.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN sound/oss/gus_wave.c~vfree-sound_oss_gus_wave sound/oss/gus_wave.c
--- kj/sound/oss/gus_wave.c~vfree-sound_oss_gus_wave 2005-01-10 18:01:07.000000000 +0100
+++ kj-domen/sound/oss/gus_wave.c 2005-01-10 18:01:07.000000000 +0100
@@ -3126,8 +3126,7 @@ void __exit gus_wave_unload(struct addre
if (hw_config->slots[5] != -1)
sound_unload_mixerdev(hw_config->slots[5]);

- if(samples)
- vfree(samples);
+ vfree(samples);
samples=NULL;
}
/* called in interrupt context */
_