]> git.karo-electronics.de Git - karo-tx-linux.git/commit
GFS2: BUG in gfs2_adjust_quota
authorAbhijith Das <adas@redhat.com>
Sun, 4 Jul 2010 05:33:24 +0000 (01:33 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:12 +0000 (15:55 -0700)
commit0682ff5eb416867ba128d8e00b05607448d936a6
treebf367496e9e3ddc881a5422ec54af1a6ecd125d8
parenta03167aeee8e456241345b8d6d18b4a64f511a60
GFS2: BUG in gfs2_adjust_quota

commit 8b4216018bdbfbb1b76150d202b15ee68c38e991 upstream.

HighMem pages on i686 do not get mapped to the buffer_heads and this was
causing a NULL pointer dereference when we were trying to memset page buffers
to zero.
We now use zero_user() that kmaps the page and directly manipulates page data.
This patch also fixes a boundary condition that was incorrect.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
[Adjusted to apply to 2.6.32 by dann frazier <dannf@debian.org>]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/gfs2/quota.c