<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
I happen to find this code snippet in the kernel source :<br>
<br>
<b> </b><i><b>struct mm_struct *mm=current->mm</b><b>;</b><b><br>
</b><b><br>
/* some other code */<br>
<br>
</b><b> if(mm){ /*<==Why is </b><b>this here? */</b><b><br>
</b><b> /*read the contents by locking*/</b><b><br>
</b><b> }<br>
<br>
</b></i>The<i> if </i>checks whether the mm_struct of the
current process is NULL or not. That means the mm_struct of a
process can become NULL. How can that happen?<br>
</body>
</html>