* [patch] possible NULL deref in alloc_posix_timer()
@ 2008-09-22 9:32 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2008-09-22 9:32 UTC (permalink / raw)
To: linux-kernel
Found by static checker (http://repo.or.cz/w/smatch.git).
Compile tested.
Signed-off-by: Dan Carpenter <error27@gmail.com>
--- kernel/posix-timers.c.orig 2008-08-29 01:52:02.000000000 +0300
+++ kernel/posix-timers.c 2008-09-20 21:54:19.000000000 +0300
@@ -441,7 +441,7 @@
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-22 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-22 9:32 [patch] possible NULL deref in alloc_posix_timer() Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®