diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-06 10:14:35 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-06 10:32:43 -0500 |
commit | fa68a1ba1de349f0d1fcc54171b95236efe24148 (patch) | |
tree | d7f1d06a8e041133fa1473b46b1eacd9f71d54d0 /fs | |
parent | 7e03b7cc0736eefe7471782c344112ad6eba951e (diff) | |
download | linux-3.10-fa68a1ba1de349f0d1fcc54171b95236efe24148.tar.gz linux-3.10-fa68a1ba1de349f0d1fcc54171b95236efe24148.tar.bz2 linux-3.10-fa68a1ba1de349f0d1fcc54171b95236efe24148.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 99a4f52c14b..ba03b790814 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; } |