Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
8fc64470
Commit
8fc64470
authored
May 23, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://linux-mh.bkbits.net/bluetooth-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
c72113b5
ca09bcc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
drivers/bluetooth/bt3c_cs.c
drivers/bluetooth/bt3c_cs.c
+3
-0
drivers/bluetooth/hci_bcsp.c
drivers/bluetooth/hci_bcsp.c
+0
-1
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/core.c
+13
-12
No files found.
drivers/bluetooth/bt3c_cs.c
View file @
8fc64470
...
...
@@ -491,6 +491,9 @@ static int bt3c_hci_ioctl(struct hci_dev *hdev, unsigned int cmd, unsigned long
static
struct
device
bt3c_device
=
{
.
bus_id
=
"pcmcia"
,
.
kobj
=
{
.
k_name
=
"bt3c"
}
};
...
...
drivers/bluetooth/hci_bcsp.c
View file @
8fc64470
...
...
@@ -33,7 +33,6 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
...
...
net/bluetooth/rfcomm/core.c
View file @
8fc64470
...
...
@@ -470,32 +470,33 @@ struct rfcomm_session *rfcomm_session_add(struct socket *sock, int state)
if
(
!
s
)
return
NULL
;
memset
(
s
,
0
,
sizeof
(
*
s
));
BT_DBG
(
"session %p sock %p"
,
s
,
sock
);
INIT_LIST_HEAD
(
&
s
->
dlcs
);
s
->
state
=
state
;
s
->
sock
=
sock
;
s
->
mtu
=
RFCOMM_DEFAULT_MTU
;
s
->
cfc
=
RFCOMM_CFC_UNKNOWN
;
list_add
(
&
s
->
list
,
&
session_list
);
s
->
mtu
=
RFCOMM_DEFAULT_MTU
;
s
->
cfc
=
RFCOMM_CFC_UNKNOWN
;
/* Do not increment module usage count for listeting sessions.
* Otherwise we won't be able to unload the module.
* Non listening session are added either by a socket or a TTYs
* which means that we already hold refcount to this module.
*/
/* Do not increment module usage count for listening sessions.
* Otherwise we won't be able to unload the module. */
if
(
state
!=
BT_LISTEN
)
__module_get
(
THIS_MODULE
);
if
(
!
try_module_get
(
THIS_MODULE
))
{
kfree
(
s
);
return
NULL
;
}
list_add
(
&
s
->
list
,
&
session_list
);
return
s
;
}
void
rfcomm_session_del
(
struct
rfcomm_session
*
s
)
{
int
state
=
s
->
state
;
BT_DBG
(
"session %p state %ld"
,
s
,
s
->
state
);
list_del
(
&
s
->
list
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment