[patch 05/12] gus_wave.c - vfree() checking cleanups

From: domen
Date: Sat Mar 05 2005 - 10:56:59 EST




gus_wave.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@xxxxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
---


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-03-05 16:10:41.000000000 +0100
+++ kj-domen/sound/oss/gus_wave.c 2005-03-05 16:10:41.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 */
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/