markers: don't risk NULL deref in marker
commit544adb41077a10d299a1094f12ec55a5843a9bdb
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 4 Mar 2008 22:29:00 +0000 (4 14:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:14 +0000 (4 16:35 -0800)
treec865b4792e67fcd96171a514c3a649fcce0cde39
parent7088655477b51a5a248fa54190388e1283ba7ebf
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