mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00: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:
parent
e9536ae720
commit
17506041de
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue