summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/rgrp.h
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2006-10-10 13:45:15 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-10-12 17:10:15 -0400
commitf5c54804d9e3bb23d8924af09d9ca1c8de9560b6 (patch)
tree34b1b098b93d41a796e3e528445fa3d87030808e /fs/gfs2/rgrp.h
parent52ae7b7935a079aaba25da98fe90772d04109f26 (diff)
downloadlinux-f5c54804d9e3bb23d8924af09d9ca1c8de9560b6.tar.gz
linux-f5c54804d9e3bb23d8924af09d9ca1c8de9560b6.tar.bz2
linux-f5c54804d9e3bb23d8924af09d9ca1c8de9560b6.zip
[GFS2] Fix uninitialised variable
This fixes a bug where, in certain cases an uninitialised variable could cause a dereference of a NULL pointer in gfs2_commit_write(). Also a typo in a comment is fixed at the same time. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/rgrp.h')
-rw-r--r--fs/gfs2/rgrp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/rgrp.h b/fs/gfs2/rgrp.h
index 9eedfd12bfff..b01e0cfc99b5 100644
--- a/fs/gfs2/rgrp.h
+++ b/fs/gfs2/rgrp.h
@@ -32,7 +32,7 @@ void gfs2_rgrp_repolish_clones(struct gfs2_rgrpd *rgd);
struct gfs2_alloc *gfs2_alloc_get(struct gfs2_inode *ip);
static inline void gfs2_alloc_put(struct gfs2_inode *ip)
{
- return; /* Se we can see where ip->i_alloc is used */
+ return; /* So we can see where ip->i_alloc is used */
}
int gfs2_inplace_reserve_i(struct gfs2_inode *ip,