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
e648c81b
Commit
e648c81b
authored
Apr 28, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DRI CVS merge: only free pages when we _have_ pages to free.
Cleanups.
parent
d201bca9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/char/drm/drm_bufs.h
drivers/char/drm/drm_bufs.h
+7
-5
No files found.
drivers/char/drm/drm_bufs.h
View file @
e648c81b
...
...
@@ -145,7 +145,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
#ifdef __alpha__
map
->
offset
+=
dev
->
hose
->
mem_space
->
start
;
#endif
map
->
offset
=
map
->
offset
+
dev
->
agp
->
base
;
map
->
offset
+=
dev
->
agp
->
base
;
map
->
mtrr
=
dev
->
agp
->
agp_mtrr
;
/* for getmap */
break
;
#endif
...
...
@@ -154,7 +154,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp,
DRM
(
free
)(
map
,
sizeof
(
*
map
),
DRM_MEM_MAPS
);
return
-
EINVAL
;
}
map
->
offset
=
map
->
offset
+
dev
->
sg
->
handle
;
map
->
offset
+=
dev
->
sg
->
handle
;
break
;
default:
...
...
@@ -680,9 +680,11 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp,
/* No allocations failed, so now we can replace the orginal pagelist
* with the new one.
*/
if
(
dma
->
page_count
)
{
DRM
(
free
)(
dma
->
pagelist
,
dma
->
page_count
*
sizeof
(
*
dma
->
pagelist
),
DRM_MEM_PAGES
);
}
dma
->
pagelist
=
temp_pagelist
;
dma
->
buf_count
+=
entry
->
buf_count
;
...
...
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