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
8324af6d
Commit
8324af6d
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluetooth-vhci: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
986837ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/bluetooth/hci_vhci.c
drivers/bluetooth/hci_vhci.c
+5
-0
No files found.
drivers/bluetooth/hci_vhci.c
View file @
8324af6d
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/sched.h>
...
@@ -263,9 +264,11 @@ static int vhci_open(struct inode *inode, struct file *file)
...
@@ -263,9 +264,11 @@ static int vhci_open(struct inode *inode, struct file *file)
skb_queue_head_init
(
&
data
->
readq
);
skb_queue_head_init
(
&
data
->
readq
);
init_waitqueue_head
(
&
data
->
read_wait
);
init_waitqueue_head
(
&
data
->
read_wait
);
lock_kernel
();
hdev
=
hci_alloc_dev
();
hdev
=
hci_alloc_dev
();
if
(
!
hdev
)
{
if
(
!
hdev
)
{
kfree
(
data
);
kfree
(
data
);
unlock_kernel
();
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
...
@@ -286,10 +289,12 @@ static int vhci_open(struct inode *inode, struct file *file)
...
@@ -286,10 +289,12 @@ static int vhci_open(struct inode *inode, struct file *file)
BT_ERR
(
"Can't register HCI device"
);
BT_ERR
(
"Can't register HCI device"
);
kfree
(
data
);
kfree
(
data
);
hci_free_dev
(
hdev
);
hci_free_dev
(
hdev
);
unlock_kernel
();
return
-
EBUSY
;
return
-
EBUSY
;
}
}
file
->
private_data
=
data
;
file
->
private_data
=
data
;
unlock_kernel
();
return
nonseekable_open
(
inode
,
file
);
return
nonseekable_open
(
inode
,
file
);
}
}
...
...
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