Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
36b5283
)
Branch HEAD
author
robert.read
<robert.read>
Fri, 3 Jul 2009 16:13:40 +0000
(16:13 +0000)
committer
robert.read
<robert.read>
Fri, 3 Jul 2009 16:13:40 +0000
(16:13 +0000)
b=200067
i=jay
i=rread
a=fanyong
Check tsk before using it.
libcfs/libcfs/linux/linux-debug.c
patch
|
blob
|
history
diff --git
a/libcfs/libcfs/linux/linux-debug.c
b/libcfs/libcfs/linux/linux-debug.c
index
7bcb5d6
..
f08be51
100644
(file)
--- a/
libcfs/libcfs/linux/linux-debug.c
+++ b/
libcfs/libcfs/linux/linux-debug.c
@@
-263,6
+263,8
@@
void libcfs_debug_dumpstack(struct task_struct *tsk)
#elif defined(HAVE_DUMP_TRACE)
/* dump_stack() */
/* show_trace() */
+ if (tsk == NULL)
+ tsk = current;
printk("Pid: %d, comm: %.20s\n", tsk->pid, tsk->comm);
/* show_trace_log_lvl() */
printk("\nCall Trace:\n");