]> git.baikalelectronics.ru Git - kernel.git/commit
markers: don't risk NULL deref in marker
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 4 Mar 2008 22:29:00 +0000 (14:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:14 +0000 (16:35 -0800)
commit1a7f8f8e20ffd2cdc773e39da5bdf3de7fb3daf7
treec865b4792e67fcd96171a514c3a649fcce0cde39
parent906ce673ea4930f847ac63c762417ce80ad5b5ef
markers: don't risk NULL deref in marker

get_marker() may return NULL, so test for it.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/marker.c