]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
GFS2: kernel panic with small gfs2 filesystems - 1 RG
authorAbhijith Das <adas@redhat.com>
Wed, 18 Jul 2012 15:56:59 +0000 (11:56 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 18 Jul 2012 15:45:13 +0000 (16:45 +0100)
commit294f2ad5a545eb71d397623743ddd8201131bdad
tree7389ffbbef4562a2aa80b6e73a063229481fbc4c
parent44b8db13860a449b5d85afdc65da654ce56da678
GFS2: kernel panic with small gfs2 filesystems - 1 RG

In the unlikely setup where there's only one resource group in the gfs2
filesystem, gfs2_rgrpd_get_next() returns a NULL rgd that is not dealt with
properly, causing a kernel NULL ptr dereference. This patch fixes this issue.

Signed-off-by: Abhi Das <adas@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/rgrp.c