]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix rfcomm oops
authorAndrew Morton <akpm@osdl.org>
Sat, 5 Jul 2003 02:38:20 +0000 (19:38 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 5 Jul 2003 02:38:20 +0000 (19:38 -0700)
From: ilmari@ilmari.org (Dagfinn Ilmari Mannsaker)

It turns out that net/bluetooth/rfcomm/sock.c (and
net/bluetooth/hci_sock.c) had been left out when net_proto_family gained an
owner field, here's a patch that fixes them both.

net/bluetooth/hci_sock.c
net/bluetooth/rfcomm/sock.c

index 2040a73db165fc88d329b417479cb7af97c8313e..1953785a0ceae86505baeb876efa1b2443f687ad 100644 (file)
@@ -632,6 +632,7 @@ static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
 
 struct net_proto_family hci_sock_family_ops = {
        .family = PF_BLUETOOTH,
+       .owner  = THIS_MODULE,
        .create = hci_sock_create,
 };
 
index 2a3eff6b43726eb3436231880671ba861b3b744d..e0aafca1b78d33edbbd1674069264b925945c391 100644 (file)
@@ -878,6 +878,7 @@ static struct proto_ops rfcomm_sock_ops = {
 
 static struct net_proto_family rfcomm_sock_family_ops = {
        .family         = PF_BLUETOOTH,
+       .owner          = THIS_MODULE,
        .create         = rfcomm_sock_create
 };