[ALSA] sound/isa/gus/interwave.c: check kmalloc() return value
[pandora-kernel.git] / sound / core / misc.c
index 3eddfde..03fc711 100644 (file)
@@ -30,10 +30,12 @@ void release_and_free_resource(struct resource *res)
 {
        if (res) {
                release_resource(res);
-               kfree_nocheck(res);
+               kfree(res);
        }
 }
 
+EXPORT_SYMBOL(release_and_free_resource);
+
 #ifdef CONFIG_SND_VERBOSE_PRINTK
 void snd_verbose_printk(const char *file, int line, const char *format, ...)
 {
@@ -51,6 +53,8 @@ void snd_verbose_printk(const char *file, int line, const char *format, ...)
        vprintk(format, args);
        va_end(args);
 }
+
+EXPORT_SYMBOL(snd_verbose_printk);
 #endif
 
 #if defined(CONFIG_SND_DEBUG) && defined(CONFIG_SND_VERBOSE_PRINTK)
@@ -71,4 +75,6 @@ void snd_verbose_printd(const char *file, int line, const char *format, ...)
        va_end(args);
 
 }
+
+EXPORT_SYMBOL(snd_verbose_printd);
 #endif