[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <3fd7d7a70801312339p2a142096p83ed286c81379728@mail.gmail.com>
Date: Fri, 1 Feb 2008 16:39:07 +0900
From: "Kenichi Okuyama" <kenichi.okuyama@...il.com>
To: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org
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/
Download attachment "patch.mm" of type "application/octet-stream" (316 bytes)
Powered by blists - more mailing lists