re: NFS: Add a client-side function to display NFS file handles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Chuck Lever,

This is a semi-automatic email about new static checker warnings.

The patch 20d27e929fb4: "NFS: Add a client-side function to display 
NFS file handles" from Mar 1, 2012, leads to the following Smatch 
complaint:

fs/nfs/inode.c:1061 _nfs_display_fhandle()
	 warn: variable dereferenced before check 'fh' (see line 1061)

fs/nfs/inode.c
  1060	
  1061		if (fh->size == 0 || fh == NULL) {
                    ^^^^^^^^         ^^^^^^^^^^
                   dereference          check

  1062			printk(KERN_DEFAULT "%s at %p is empty\n", caption, fh);
  1063			return;

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux