]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:36 +0000 (10:57 -0400)
commitfbe874a35ef39a88aa23c17b1b576b14771dabac
tree98bd63e4f82a92f7f05ab7e278d97deaaa8a7d4a
parenta3b9ca24c2d9ac221d316a3ed404e58684f2e72f
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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/gfs2/quota.c