mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
cifsd: use file_inode() instead of d_inode()
use file_inode() to get layerd filesystems right. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
1637023594
commit
d2f72ed8fa
|
|
@ -335,7 +335,7 @@ int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count,
|
|||
|
||||
rbuf = work->aux_payload_buf;
|
||||
filp = fp->filp;
|
||||
inode = d_inode(filp->f_path.dentry);
|
||||
inode = file_inode(filp);
|
||||
if (S_ISDIR(inode->i_mode))
|
||||
return -EISDIR;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user