mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
cls_cgroup: remove task_struct parameter from sock_update_classid()
The callers always pass current to sock_update_classid(). Signed-off-by: Li Zefan <lizefan@huawei.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10b96f7306
commit
211d2f97e9
3 changed files with 6 additions and 6 deletions
|
@ -291,7 +291,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
|
|||
sock = sock_from_file(fp[i], &err);
|
||||
if (sock) {
|
||||
sock_update_netprioidx(sock->sk, current);
|
||||
sock_update_classid(sock->sk, current);
|
||||
sock_update_classid(sock->sk);
|
||||
}
|
||||
fd_install(new_fd, get_file(fp[i]));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue