]> err.no Git - linux-2.6/commit
[ALSA] timer: fix timer instance memory allocation checks
authorClemens Ladisch <clemens@ladisch.de>
Wed, 12 Oct 2005 15:10:35 +0000 (17:10 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 4 Nov 2005 12:18:38 +0000 (13:18 +0100)
commit2fd43d1159d22395aae01836c4b13ee5265a9b6b
treefcbbd9af8033f992a0ff30a4dc689e3e3e42b932
parent2dfbeca9e9b3857e005afc9b933e2e1be07a9ea0
[ALSA] timer: fix timer instance memory allocation checks

Modules: Timer Midlevel

Add checks to return -ENOMEM in case snd_timer_instance_new() fails.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/timer.c