Commit 77f6425b authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] gus_wave.c - vfree() checking cleanups

gus_wave.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b1995c18
......@@ -3126,8 +3126,7 @@ void __exit gus_wave_unload(struct address_info *hw_config)
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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment