Merge commit 'linus/master' into merge-linus
[linux-2.6-block.git] / kernel / posix-timers.c
index f85efcdcab2d0e68037ee1ad03dc0cf2981c9635..ee204586149a0c8ab6144808c0610320545f7b8f 100644 (file)
@@ -441,7 +441,7 @@ static struct k_itimer * alloc_posix_timer(void)
                return tmr;
        if (unlikely(!(tmr->sigq = sigqueue_alloc()))) {
                kmem_cache_free(posix_timers_cache, tmr);
-               tmr = NULL;
+               return NULL;
        }
        memset(&tmr->sigq->info, 0, sizeof(siginfo_t));
        return tmr;