Skip to contentSkip to conversation

tmp_dentry dereference ?

DISCUSSION Joilnen Leite 1 participant 1 message Feb 19, 2004

lore
Share & tools
lore
#0 lore raw

here i think that d_alloc can return NULL, so
tmp_dentry not use without checked.

fs/cifs/file.c:1251

} else {
      tmp_dentry = d_alloc(file->f_dentry, qstring);
      *ptmp_inode = new_inode(file->f_dentry->d_sb);
      tmp_dentry->d_op = &cifs_dentry_ops;
      cFYI(0, (" instantiate dentry 0x%p with inode
0x%p ",
                tmp_dentry, *ptmp_inode));
      d_instantiate(tmp_dentry, *ptmp_inode);
      d_rehash(tmp_dentry);
}

pub 1024D/5139533E Joilnen Batista Leite
F565 BD0B 1A39 390D 827E 03E5 0CD4 0F20 5139 533E

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools