Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2861ead3
Commit
2861ead3
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apm-emulation: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
b8282994
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
drivers/char/apm-emulation.c
drivers/char/apm-emulation.c
+3
-0
No files found.
drivers/char/apm-emulation.c
View file @
2861ead3
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/poll.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/proc_fs.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/seq_file.h>
#include <linux/miscdevice.h>
#include <linux/miscdevice.h>
...
@@ -416,6 +417,7 @@ static int apm_open(struct inode * inode, struct file * filp)
...
@@ -416,6 +417,7 @@ static int apm_open(struct inode * inode, struct file * filp)
{
{
struct
apm_user
*
as
;
struct
apm_user
*
as
;
lock_kernel
();
as
=
kzalloc
(
sizeof
(
*
as
),
GFP_KERNEL
);
as
=
kzalloc
(
sizeof
(
*
as
),
GFP_KERNEL
);
if
(
as
)
{
if
(
as
)
{
/*
/*
...
@@ -435,6 +437,7 @@ static int apm_open(struct inode * inode, struct file * filp)
...
@@ -435,6 +437,7 @@ static int apm_open(struct inode * inode, struct file * filp)
filp
->
private_data
=
as
;
filp
->
private_data
=
as
;
}
}
unlock_kernel
();
return
as
?
0
:
-
ENOMEM
;
return
as
?
0
:
-
ENOMEM
;
}
}
...
...
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