Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa68a1ba authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFS: Fix a typo in _nfs_display_fhandle



The check for 'fh == NULL' needs to come _before_ we dereference
fh.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 7e03b7cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}