From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Thu, 08 Mar 2007 09:34:17 +0000 Subject: [Cluster-devel] [GFS2] fix bz 231369, gfs2 will oops if you specify an invalid mount option In-Reply-To: <20070307220909.GA22561@korben.rdu.redhat.com> References: <20070307220909.GA22561@korben.rdu.redhat.com> Message-ID: <1173346457.32601.0.camel@quoit.chygwyn.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the gfs2 -nmw git tree. Thanks, Steve. On Wed, 2007-03-07 at 17:09 -0500, Josef Whiter wrote: > Hello, > > If you specify an invalid mount option when trying to mount a gfs2 filesystem, > gfs2 will oops. The attached patch resolves this problem. > > Signed-off-by: Josef Whiter > > > --- gfs2-2.6-nmw/fs/gfs2/glock.c.josef 2007-03-07 17:05:39.000000000 -0500 > +++ gfs2-2.6-nmw/fs/gfs2/glock.c 2007-03-07 17:06:13.000000000 -0500 > @@ -2217,7 +2217,7 @@ int gfs2_create_debugfs_file(struct gfs2 > > void gfs2_delete_debugfs_file(struct gfs2_sbd *sdp) > { > - if (sdp->debugfs_dentry) > + if (sdp && sdp->debugfs_dentry) > debugfs_remove(sdp->debugfs_dentry); > } > >