netdev
[Top] [All Lists]

Re: Bluetooth BUG() in set_sk_owner().

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: Bluetooth BUG() in set_sk_owner().
From: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Date: Mon, 15 Sep 2003 09:54:10 +0100
Cc: netdev@xxxxxxxxxxx, shemminger@xxxxxxxx, maxk@xxxxxxxxxxxx, marcel@xxxxxxxxxxxx
In-reply-to: <20030911182223.2e9b7118.davem@redhat.com>
References: <1063184337.32473.529.camel@hades.cambridge.redhat.com> <20030911182223.2e9b7118.davem@redhat.com>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 2003-09-11 at 18:22 -0700, David S. Miller wrote:
> On Wed, 10 Sep 2003 09:58:57 +0100
> David Woodhouse <dwmw2@xxxxxxxxxxxxx> wrote:
> 
> > It loks like the recent addition of sk_set_owner() to 
> > bt_sock_alloc() was bogus... some of the callers of bt_sock_alloc()
> > already do that for  This patch reverts it, and makes the remaining
> > callers also set the owner for themselves...
> 
> Applied, thanks David.

Needs this too...

===== net/bluetooth/bnep/sock.c 1.11 vs edited =====
--- 1.11/net/bluetooth/bnep/sock.c      Thu Jun  5 01:57:08 2003
+++ edited/net/bluetooth/bnep/sock.c    Fri Sep 12 09:16:17 2003
@@ -186,7 +189,8 @@
 
 static struct net_proto_family bnep_sock_family_ops = {
        .family = PF_BLUETOOTH,
-       .create = bnep_sock_create
+       .create = bnep_sock_create,
+       .owner = THIS_MODULE
 };
 
 int __init bnep_sock_init(void)


-- 
dwmw2


<Prev in Thread] Current Thread [Next in Thread>