aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-23 21:26:54 +0200
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2015-10-23 21:26:54 +0200
commit61441d066d8f7691ad3d9afdf1d3ae94a478c057 (patch)
tree0876449595bcdb6b05e0393805fc170598b65d03 /sound/core/timer.c
parentde04df3a2555ac04d19c3ad6528503d5bf4ab0e7 (diff)
downloadkernel_samsung_smdk4412-61441d066d8f7691ad3d9afdf1d3ae94a478c057.zip
kernel_samsung_smdk4412-61441d066d8f7691ad3d9afdf1d3ae94a478c057.tar.gz
kernel_samsung_smdk4412-61441d066d8f7691ad3d9afdf1d3ae94a478c057.tar.bz2
remove compat from include, get new scripts working
further update code, especially sound remove initramfs files for galaxys2 and d710 and a busybox binary
Diffstat (limited to 'sound/core/timer.c')
-rw-r--r--sound/core/timer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 950eed0..8e7561d 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -24,7 +24,7 @@
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/mutex.h>
-#include <linux/moduleparam.h>
+#include <linux/module.h>
#include <linux/string.h>
#include <sound/core.h>
#include <sound/timer.h>
@@ -328,6 +328,8 @@ int snd_timer_close(struct snd_timer_instance *timeri)
mutex_unlock(&register_mutex);
} else {
timer = timeri->timer;
+ if (snd_BUG_ON(!timer))
+ goto out;
/* wait, until the active callback is finished */
spin_lock_irq(&timer->lock);
while (timeri->flags & SNDRV_TIMER_IFLG_CALLBACK) {
@@ -353,6 +355,7 @@ int snd_timer_close(struct snd_timer_instance *timeri)
}
mutex_unlock(&register_mutex);
}
+ out:
if (timeri->private_free)
timeri->private_free(timeri);
kfree(timeri->owner);