|
@@ -116,7 +116,7 @@ struct sock *unix_get_socket(struct file *filp)
|
|
|
* descriptor if it is for an AF_UNIX socket.
|
|
|
*/
|
|
|
|
|
|
-void unix_inflight(struct file *fp)
|
|
|
+void unix_inflight(struct user_struct *user, struct file *fp)
|
|
|
{
|
|
|
struct sock *s = unix_get_socket(fp);
|
|
|
|
|
@@ -133,11 +133,11 @@ void unix_inflight(struct file *fp)
|
|
|
}
|
|
|
unix_tot_inflight++;
|
|
|
}
|
|
|
- fp->f_cred->user->unix_inflight++;
|
|
|
+ user->unix_inflight++;
|
|
|
spin_unlock(&unix_gc_lock);
|
|
|
}
|
|
|
|
|
|
-void unix_notinflight(struct file *fp)
|
|
|
+void unix_notinflight(struct user_struct *user, struct file *fp)
|
|
|
{
|
|
|
struct sock *s = unix_get_socket(fp);
|
|
|
|
|
@@ -152,7 +152,7 @@ void unix_notinflight(struct file *fp)
|
|
|
list_del_init(&u->link);
|
|
|
unix_tot_inflight--;
|
|
|
}
|
|
|
- fp->f_cred->user->unix_inflight--;
|
|
|
+ user->unix_inflight--;
|
|
|
spin_unlock(&unix_gc_lock);
|
|
|
}
|
|
|
|