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
Kirill Smelkov
linux
Commits
05ae9880
Commit
05ae9880
authored
Dec 30, 2002
by
Dave Jones
Committed by
Dave Jones
Dec 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] propagate agp_backend_acquire() return code up to the ioctl.
parent
d9d8c4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
drivers/char/agp/frontend.c
drivers/char/agp/frontend.c
+10
-8
No files found.
drivers/char/agp/frontend.c
View file @
05ae9880
...
@@ -759,18 +759,20 @@ static int agpioc_info_wrap(agp_file_private * priv, unsigned long arg)
...
@@ -759,18 +759,20 @@ static int agpioc_info_wrap(agp_file_private * priv, unsigned long arg)
static
int
agpioc_acquire_wrap
(
agp_file_private
*
priv
,
unsigned
long
arg
)
static
int
agpioc_acquire_wrap
(
agp_file_private
*
priv
,
unsigned
long
arg
)
{
{
int
ret
;
agp_controller
*
controller
;
agp_controller
*
controller
;
if
(
!
(
test_bit
(
AGP_FF_ALLOW_CONTROLLER
,
&
priv
->
access_flags
)))
{
if
(
!
(
test_bit
(
AGP_FF_ALLOW_CONTROLLER
,
&
priv
->
access_flags
)))
return
-
EPERM
;
return
-
EPERM
;
}
if
(
agp_fe
.
current_controller
!=
NULL
)
{
if
(
agp_fe
.
current_controller
!=
NULL
)
return
-
EBUSY
;
return
-
EBUSY
;
}
if
((
agp_backend_acquire
())
==
0
)
{
ret
=
agp_backend_acquire
();
if
(
ret
==
0
)
agp_fe
.
backend_acquired
=
TRUE
;
agp_fe
.
backend_acquired
=
TRUE
;
}
else
{
else
return
-
EBUSY
;
return
ret
;
}
controller
=
agp_find_controller_by_pid
(
priv
->
my_pid
);
controller
=
agp_find_controller_by_pid
(
priv
->
my_pid
);
...
...
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