Fix kernel panic on NULL pointer deref w/ certain ktrace commands, allow -c -f.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 Mar 2009 16:15:10 +0000 (09:15 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 12 Mar 2009 16:15:10 +0000 (09:15 -0700)
commita4a639859f6bc14f9f55142b4bd2289b2a56d7f2
treebf3ac1ecfcf6b7286b418cc6152080c23da10181
parente54743b1803e9173c766eb9d90eb9ff932a2c3fa
Fix kernel panic on NULL pointer deref w/ certain ktrace commands, allow -c -f.

Fix a kernel panic on a NULL pointer dereference with certain ktrace -c
commands.

Allow the -c -f <file> combination (taken from FreeBSD).

Submitted-by: Stathis Kamperis <beket>
sys/kern/kern_ktrace.c
usr.bin/ktrace/ktrace.c