X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=arch%2Fparisc%2Fkernel%2Fprocess.c;h=b80e02a4d81de3d193ec1faae269b7614a783cf1;hb=13d93924f13e1989cf27375cd46451475bc70d1d;hp=0dd3847f494c390f78563ea2c450d7e90cfa918d;hpb=9f6632d6290785caf9e9f874c0a0cfaf2c178e59;p=sfrench%2Fcifs-2.6.git diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index 0dd3847f494c..b80e02a4d81d 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -381,6 +382,10 @@ get_wchan(struct task_struct *p) struct unwind_frame_info info; unsigned long ip; int count = 0; + + if (!p || p == current || p->state == TASK_RUNNING) + return 0; + /* * These bracket the sleeping functions.. */