Hello friends, <br>
<br>
I am having issue with the pid_task function with arguments first as 
userspace pid (using getpid fn) and 2nd argument PIDTYPE_PID.<br>
<br>
&quot;pid_task(&lt;pid from userspace&gt;, PIDTYPE_PID);&quot;<br>
<br>
Can anyone assist me what can be the cause?<br>
<br>
Have a Good Day,<br>
Thank you,<br>
Ankur.<br>
<br>
<b>The kernel gives exception as below:</b><br>
Unable to handle kernel NULL pointer dereference at virtual address 000001dd<br>
pgd = c7c04000<br>
[000001dd] *pgd=779fe031, *pte=00000000, *ppte=00000000<br>
Internal error: Oops: 1 [#1]<br>
last sysfs file: /sys/devices/platform/i2c-gpio.1/i2c-1/1-0048/temp1_pid<br>
&lt;8&gt;Modules linked in: tmp102 <br>
&lt;8&gt;CPU: 0    Tainted: G        W   (2.6.33.2 #100)<br>
&lt;8&gt;PC is at pid_task+0x18/0x44