lkml.org 
[lkml]   [2008]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch] NULL pointer check for vma->vm_mm
Dear all,

I was looking at the ./mm/rmap.c .. I found that, in function
"page_referenced_one()",
struct mm_struct *mm = vma->vm_mm;
was being refererred without NULL check.

Though I do agree that this works for most of the cases, I thought it
is better to add
BUG_ON() for case of mm being NULL.

attached is the patch for this

thank you in advance for taking your time.
best regards,
--
(Kenichi Okuyama)
URL: http://www.dd.iij4u.or.jp/~okuyamak/
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2008-02-01 08:47    [W:0.213 / U:0.924 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site