2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

[PATCH] struct path: convert nbd

Signed-off-by: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Josef Sipek 2006-12-08 02:37:22 -08:00 committed by Linus Torvalds
parent e9536ae720
commit 17506041de

View File

@ -537,7 +537,7 @@ static int nbd_ioctl(struct inode *inode, struct file *file,
error = -EINVAL; error = -EINVAL;
file = fget(arg); file = fget(arg);
if (file) { if (file) {
inode = file->f_dentry->d_inode; inode = file->f_path.dentry->d_inode;
if (S_ISSOCK(inode->i_mode)) { if (S_ISSOCK(inode->i_mode)) {
lo->file = file; lo->file = file;
lo->sock = SOCKET_I(inode); lo->sock = SOCKET_I(inode);