[CIFS] Fix typo in earlier cifs_unlink change and protect one extra path.

Since cifs_unlink can also be called from rename path and there
was one report of oops am making the extra check for null inode.

Signed-off-by: Steve French <sfrench@us.ibm.com>

+7 -5
+7 -5
fs/cifs/inode.c
··· 565 565 struct cifsInodeInfo *cifsInode; 566 566 FILE_BASIC_INFO *pinfo_buf; 567 567 568 - cFYI(1, ("cifs_unlink, inode = 0x%p with ", inode)); 568 + cFYI(1, ("cifs_unlink, inode = 0x%p", inode)); 569 569 570 570 xid = GetXid(); 571 571 572 572 if(inode) 573 573 cifs_sb = CIFS_SB(inode->i_sb); 574 574 else 575 - cifs_sb = CIFS_SB(dentry->d_sb); 575 + cifs_sb = CIFS_SB(direntry->d_sb); 576 576 pTcon = cifs_sb->tcon; 577 577 578 578 /* Unlink can be called from rename so we can not grab the sem here ··· 695 695 when needed */ 696 696 direntry->d_inode->i_ctime = current_fs_time(inode->i_sb); 697 697 } 698 - inode->i_ctime = inode->i_mtime = current_fs_time(inode->i_sb); 699 - cifsInode = CIFS_I(inode); 700 - cifsInode->time = 0; /* force revalidate of dir as well */ 698 + if(inode) { 699 + inode->i_ctime = inode->i_mtime = current_fs_time(inode->i_sb); 700 + cifsInode = CIFS_I(inode); 701 + cifsInode->time = 0; /* force revalidate of dir as well */ 702 + } 701 703 702 704 kfree(full_path); 703 705 FreeXid(xid);