projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c9209
)
fix error-path NULL deref in alloc_posix_timer()
author
Dan Carpenter
<error27@gmail.com>
Thu, 2 Oct 2008 21:50:14 +0000
(14:50 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 2 Oct 2008 22:53:13 +0000
(15:53 -0700)
Found by static checker (http://repo.or.cz/w/smatch.git).
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/posix-timers.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/posix-timers.c
b/kernel/posix-timers.c
index e36d5798cbff427fca02fd8c9a8fb6f615dbd3fe..5131e5471169226ef8db42f20792c8ffdac6d12b 100644
(file)
--- a/
kernel/posix-timers.c
+++ b/
kernel/posix-timers.c
@@
-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;