Commit 921d4f1f authored by Stephen Hemminger's avatar Stephen Hemminger

[LLC]: Missing sk_set_owner() in llc_sk_alloc.

parent 6ea8bb48
...@@ -229,6 +229,7 @@ struct sock *llc_sk_alloc(int family, int priority) ...@@ -229,6 +229,7 @@ struct sock *llc_sk_alloc(int family, int priority)
if (llc_sk_init(sk)) if (llc_sk_init(sk))
goto outsk; goto outsk;
sock_init_data(NULL, sk); sock_init_data(NULL, sk);
sk_set_owner(sk, THIS_MODULE);
#ifdef LLC_REFCNT_DEBUG #ifdef LLC_REFCNT_DEBUG
atomic_inc(&llc_sock_nr); atomic_inc(&llc_sock_nr);
printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk, printk(KERN_DEBUG "LLC socket %p created in %s, now we have %d alive\n", sk,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment