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
e75276ad
Commit
e75276ad
authored
Feb 07, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://drm.bkbits.net/drm-linus
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
e1920b53
7dcd6234
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
84 additions
and
104 deletions
+84
-104
drivers/char/drm/drm_drv.c
drivers/char/drm/drm_drv.c
+1
-1
drivers/char/drm/drm_os_linux.h
drivers/char/drm/drm_os_linux.h
+0
-3
drivers/char/drm/radeon_drv.h
drivers/char/drm/radeon_drv.h
+15
-13
drivers/char/drm/radeon_state.c
drivers/char/drm/radeon_state.c
+68
-87
No files found.
drivers/char/drm/drm_drv.c
View file @
e75276ad
...
...
@@ -516,7 +516,7 @@ int drm_ioctl( struct inode *inode, struct file *filp,
if
(
nr
<
DRIVER_IOCTL_COUNT
)
ioctl
=
&
drm_ioctls
[
nr
];
else
if
((
nr
>=
DRM_COMMAND_BASE
)
||
(
nr
<
DRM_COMMAND_BASE
+
dev
->
driver
->
num_ioctls
))
else
if
((
nr
>=
DRM_COMMAND_BASE
)
&&
(
nr
<
DRM_COMMAND_BASE
+
dev
->
driver
->
num_ioctls
))
ioctl
=
&
dev
->
driver
->
ioctls
[
nr
-
DRM_COMMAND_BASE
];
else
goto
err_i1
;
...
...
drivers/char/drm/drm_os_linux.h
View file @
e75276ad
...
...
@@ -96,9 +96,6 @@ static __inline__ int mtrr_del (int reg, unsigned long base,
__copy_to_user(arg1, arg2, arg3)
#define DRM_GET_USER_UNCHECKED(val, uaddr) \
__get_user(val, uaddr)
#define DRM_PUT_USER_UNCHECKED(uaddr, val) \
__put_user(val, uaddr)
#define DRM_GET_PRIV_WITH_RETURN(_priv, _filp) _priv = _filp->private_data
...
...
drivers/char/drm/radeon_drv.h
View file @
e75276ad
...
...
@@ -1027,25 +1027,27 @@ do { \
} while (0)
#define OUT_RING_
USER_TABLE( tab, sz ) do {
\
#define OUT_RING_
TABLE( tab, sz ) do {
\
int _size = (sz); \
int
__user *_tab = (tab);
\
int
*_tab = (int *)(tab);
\
\
if (write + _size > mask) { \
int i = (mask+1) - write; \
if (DRM_COPY_FROM_USER_UNCHECKED( (int *)(ring+write), \
_tab, i*4 )) \
return DRM_ERR(EFAULT); \
int _i = (mask+1) - write; \
_size -= _i; \
while (_i > 0 ) { \
*(int *)(ring + write) = *_tab++; \
write++; \
_i--; \
} \
write = 0; \
_size -= i; \
_tab += i; \
_tab += _i; \
} \
\
if (_size && DRM_COPY_FROM_USER_UNCHECKED( (int *)(ring+write),
\
_tab, _size*4 ))
\
return DRM_ERR(EFAULT);
\
\
write += _size;
\
while (_size > 0) {
\
*(ring + write) = *_tab++;
\
write++;
\
_size--;
\
}
\
write &= mask; \
} while (0)
...
...
drivers/char/drm/radeon_state.c
View file @
e75276ad
This diff is collapsed.
Click to expand it.
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