[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20061112132310.GJ25057@stusta.de>
Date: Sun, 12 Nov 2006 14:23:10 +0100
From: Adrian Bunk <bunk@...sta.de>
To: neilb@....unsw.edu.au
Cc: nfs@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: include/linux/nfsd/nfsfh.h: NULL dereference
The Coverity checker spotted the following:
<-- snip -->
...
static __inline__ struct svc_fh *
fh_copy(struct svc_fh *dst, struct svc_fh *src)
{
if (src->fh_dentry || src->fh_locked) {
struct dentry *dentry = src->fh_dentry;
printk(KERN_ERR "fh_copy: copying %s/%s, already verified!\n",
dentry->d_parent->d_name.name, dentry->d_name.name);
}
*dst = *src;
return dst;
}
...
<-- snip -->
src->fh_dentry is being dereferenced when we discover it's NULL...
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists