lkml.org 
[lkml]   [2008]   [Mar]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 8 Mar 2008 09:36:37 +0100
FromIngo Molnar <>
SubjectRe: [PATCH] Fix check after use in kernel/exit.c
* WANG Cong <xiyou.wangcong@gmail.com> wrote:

> mm_release won't check the mm_struct pointer, so it should be checked 
> before this call.

> @@ -582,9 +582,9 @@ static void exit_mm(struct task_struct * tsk)
>  {
>  	struct mm_struct *mm = tsk->mm;
> 
> -	mm_release(tsk, mm);
>  	if (!mm)
>  		return;
> +	mm_release(tsk, mm);

thanks, applied. I'm wondering why this never seems to hit in practice.

	Ingo


\
 
 \ /
  Last update: 2008-03-08 09:39    [from the cache]
©2003-2008