* fs/cifs/cifsacl.c: check-after-use
@ 2007-11-24 17:16 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-11-24 17:16 UTC (permalink / raw)
To: sfrench; +Cc: linux-cifs-client, linux-kernel
The Coverity checker spotted the following check-after-use in
fs/cifs/cifsacl.c:
<-- snip -->
...
static void parse_dacl(struct cifs_acl *pdacl, char *end_of_acl,
struct cifs_sid *pownersid, struct cifs_sid *pgrpsid,
struct inode *inode)
{
...
if (end_of_acl < (char *)pdacl + le16_to_cpu(pdacl->size)) {
... ^^^^^^^^^^^
if (!pdacl) {
...
<-- snip -->
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-24 17:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24 17:16 fs/cifs/cifsacl.c: check-after-use Adrian Bunk
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).