]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blobdiff - net/core/netclassid_cgroup.c
net: wrap sock->sk_cgrp_prioidx and ->sk_classid inside a struct
[mirror_ubuntu-disco-kernel.git] / net / core / netclassid_cgroup.c
index 2e4df84c34a194ad61d818f282d1124521b9a828..e60ded46b3ac5fff089402807a4eddc77217611f 100644 (file)
@@ -62,8 +62,8 @@ static int update_classid_sock(const void *v, struct file *file, unsigned n)
        struct socket *sock = sock_from_file(file, &err);
 
        if (sock)
-               sock->sk->sk_classid = (u32)(unsigned long)v;
-
+               sock_cgroup_set_classid(&sock->sk->sk_cgrp_data,
+                                       (unsigned long)v);
        return 0;
 }