linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: NFS: Add a client-side function to display NFS file handles
@ 2012-03-06 10:51 Dan Carpenter
  2012-03-06 16:14 ` Fwd: " Chuck Lever
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2012-03-06 10:51 UTC (permalink / raw)
  To: chuck.lever; +Cc: linux-nfs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-06 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 10:51 NFS: Add a client-side function to display NFS file handles Dan Carpenter
2012-03-06 16:14 ` Fwd: " Chuck Lever
2012-03-06 16:18   ` Myklebust, Trond

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).