Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa94fbd5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

fix error-path NULL deref in alloc_posix_timer()

parent c0c9209d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;