diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 5681ce3aebca..a78d962e2c70 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -88,7 +88,7 @@ struct netlink_sock { | |||
88 | 88 | ||
89 | static inline struct netlink_sock *nlk_sk(struct sock *sk) | 89 | static inline struct netlink_sock *nlk_sk(struct sock *sk) |
90 | { | 90 | { |
91 | return (struct netlink_sock *)sk; | 91 | return container_of(sk, struct netlink_sock, sk); |
92 | } | 92 | } |
93 | 93 | ||
94 | struct nl_pid_hash { | 94 | struct nl_pid_hash { |