summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-06 15:14:35 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-03-06 15:32:43 (GMT)
commitfa68a1ba1de349f0d1fcc54171b95236efe24148 (patch)
treed7f1d06a8e041133fa1473b46b1eacd9f71d54d0
parent7e03b7cc0736eefe7471782c344112ad6eba951e (diff)
downloadlinux-fa68a1ba1de349f0d1fcc54171b95236efe24148.tar.xz
NFS: Fix a typo in _nfs_display_fhandle
The check for 'fh == NULL' needs to come _before_ we dereference fh. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index 99a4f52..ba03b79 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1058,7 +1058,7 @@ void _nfs_display_fhandle(const struct nfs_fh *fh, const char *caption)
{
unsigned short i;
- if (fh->size == 0 || fh == NULL) {
+ if (fh == NULL || fh->size == 0) {
printk(KERN_DEFAULT "%s at %p is empty\n", caption, fh);
return;
}