]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] timer: check for incorrect device state in non-debug compiles, too
authorClemens Ladisch <clemens@ladisch.de>
Mon, 16 Jul 2007 09:01:30 +0000 (11:01 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:54 +0000 (11:11 +0200)
commitd31cbd54d58ce458f3677070caa7b3b1cd87d35c
tree0066624778782a064a472e959132238c39a59e50
parent1393bba58fef154fa2ab9e6af04b52323c86bd9c
[ALSA] timer: check for incorrect device state in non-debug compiles, too

Convert the snd_assert()s to simple if()s to prevent crashes when one of
the timer instance ioctls is called before the file is bound to a timer
device.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/timer.c