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
11d9c2fd
Commit
11d9c2fd
authored
Feb 18, 2007
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: fix crash with fops lock and fixup sarea/page size locking
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
54ba2f76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/char/drm/drm_fops.c
drivers/char/drm/drm_fops.c
+4
-2
No files found.
drivers/char/drm/drm_fops.c
View file @
11d9c2fd
...
...
@@ -46,6 +46,7 @@ static int drm_setup(drm_device_t * dev)
drm_local_map_t
*
map
;
int
i
;
int
ret
;
u32
sareapage
;
if
(
dev
->
driver
->
firstopen
)
{
ret
=
dev
->
driver
->
firstopen
(
dev
);
...
...
@@ -56,7 +57,8 @@ static int drm_setup(drm_device_t * dev)
dev
->
magicfree
.
next
=
NULL
;
/* prebuild the SAREA */
i
=
drm_addmap
(
dev
,
0
,
SAREA_MAX
,
_DRM_SHM
,
_DRM_CONTAINS_LOCK
,
&
map
);
sareapage
=
max
(
SAREA_MAX
,
PAGE_SIZE
);
i
=
drm_addmap
(
dev
,
0
,
sareapage
,
_DRM_SHM
,
_DRM_CONTAINS_LOCK
,
&
map
);
if
(
i
!=
0
)
return
i
;
...
...
@@ -84,7 +86,7 @@ static int drm_setup(drm_device_t * dev)
INIT_LIST_HEAD
(
&
dev
->
ctxlist
->
head
);
dev
->
vmalist
=
NULL
;
dev
->
sigdata
.
lock
=
dev
->
lock
.
hw_lock
=
NULL
;
dev
->
sigdata
.
lock
=
NULL
;
init_waitqueue_head
(
&
dev
->
lock
.
lock_queue
);
dev
->
queue_count
=
0
;
dev
->
queue_reserved
=
0
;
...
...
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