projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e03b7c
)
NFS: Fix a typo in _nfs_display_fhandle
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 6 Mar 2012 15:14:35 +0000
(10:14 -0500)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 6 Mar 2012 15:32:43 +0000
(10:32 -0500)
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>
fs/nfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/nfs/inode.c
b/fs/nfs/inode.c
index
99a4f52
..
ba03b79
100644
(file)
--- 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;
}