Browse Source

[PATCH] struct path: convert unix

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>
Josef Sipek 19 năm trước cách đây
mục cha
commit
592ccbf9fb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      net/unix/garbage.c

+ 1 - 1
net/unix/garbage.c

@@ -96,7 +96,7 @@ atomic_t unix_tot_inflight = ATOMIC_INIT(0);
 static struct sock *unix_get_socket(struct file *filp)
 static struct sock *unix_get_socket(struct file *filp)
 {
 {
 	struct sock *u_sock = NULL;
 	struct sock *u_sock = NULL;
-	struct inode *inode = filp->f_dentry->d_inode;
+	struct inode *inode = filp->f_path.dentry->d_inode;
 
 
 	/*
 	/*
 	 *	Socket ?
 	 *	Socket ?