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
1f4eccfd
Commit
1f4eccfd
authored
Aug 18, 2006
by
Thomas Hellstrom
Committed by
Dave Airlie
Sep 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: remove hash tables on drm exit
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
fb41e54b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
drivers/char/drm/drm_drv.c
drivers/char/drm/drm_drv.c
+2
-0
drivers/char/drm/drm_fops.c
drivers/char/drm/drm_fops.c
+2
-0
No files found.
drivers/char/drm/drm_drv.c
View file @
1f4eccfd
...
@@ -161,6 +161,7 @@ int drm_lastclose(drm_device_t * dev)
...
@@ -161,6 +161,7 @@ int drm_lastclose(drm_device_t * dev)
drm_ht_remove_item
(
&
dev
->
magiclist
,
&
pt
->
hash_item
);
drm_ht_remove_item
(
&
dev
->
magiclist
,
&
pt
->
hash_item
);
drm_free
(
pt
,
sizeof
(
*
pt
),
DRM_MEM_MAGIC
);
drm_free
(
pt
,
sizeof
(
*
pt
),
DRM_MEM_MAGIC
);
}
}
drm_ht_remove
(
&
dev
->
magiclist
);
}
}
/* Clear AGP information */
/* Clear AGP information */
...
@@ -299,6 +300,7 @@ static void drm_cleanup(drm_device_t * dev)
...
@@ -299,6 +300,7 @@ static void drm_cleanup(drm_device_t * dev)
if
(
dev
->
maplist
)
{
if
(
dev
->
maplist
)
{
drm_free
(
dev
->
maplist
,
sizeof
(
*
dev
->
maplist
),
DRM_MEM_MAPS
);
drm_free
(
dev
->
maplist
,
sizeof
(
*
dev
->
maplist
),
DRM_MEM_MAPS
);
dev
->
maplist
=
NULL
;
dev
->
maplist
=
NULL
;
drm_ht_remove
(
&
dev
->
map_hash
);
}
}
drm_ctxbitmap_cleanup
(
dev
);
drm_ctxbitmap_cleanup
(
dev
);
...
...
drivers/char/drm/drm_fops.c
View file @
1f4eccfd
...
@@ -53,6 +53,8 @@ static int drm_setup(drm_device_t * dev)
...
@@ -53,6 +53,8 @@ static int drm_setup(drm_device_t * dev)
return
ret
;
return
ret
;
}
}
dev
->
magicfree
.
next
=
NULL
;
/* prebuild the SAREA */
/* prebuild the SAREA */
i
=
drm_addmap
(
dev
,
0
,
SAREA_MAX
,
_DRM_SHM
,
_DRM_CONTAINS_LOCK
,
&
map
);
i
=
drm_addmap
(
dev
,
0
,
SAREA_MAX
,
_DRM_SHM
,
_DRM_CONTAINS_LOCK
,
&
map
);
if
(
i
!=
0
)
if
(
i
!=
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