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
de801ff8
Commit
de801ff8
authored
Jun 02, 2004
by
Dave Airlie
Committed by
David Airlie
Jun 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing DRM_ERR()s - Eric Anholt
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
4c6b5945
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/char/drm/r128_state.c
drivers/char/drm/r128_state.c
+4
-4
drivers/char/drm/radeon_mem.c
drivers/char/drm/radeon_mem.c
+2
-2
No files found.
drivers/char/drm/r128_state.c
View file @
de801ff8
...
@@ -916,7 +916,7 @@ static int r128_cce_dispatch_write_span( drm_device_t *dev,
...
@@ -916,7 +916,7 @@ static int r128_cce_dispatch_write_span( drm_device_t *dev,
count
=
depth
->
n
;
count
=
depth
->
n
;
if
(
count
>
4096
||
count
<=
0
)
if
(
count
>
4096
||
count
<=
0
)
return
-
EMSGSIZE
;
return
DRM_ERR
(
EMSGSIZE
)
;
if
(
DRM_COPY_FROM_USER
(
&
x
,
depth
->
x
,
sizeof
(
x
)
)
)
{
if
(
DRM_COPY_FROM_USER
(
&
x
,
depth
->
x
,
sizeof
(
x
)
)
)
{
return
DRM_ERR
(
EFAULT
);
return
DRM_ERR
(
EFAULT
);
...
@@ -1012,7 +1012,7 @@ static int r128_cce_dispatch_write_pixels( drm_device_t *dev,
...
@@ -1012,7 +1012,7 @@ static int r128_cce_dispatch_write_pixels( drm_device_t *dev,
count
=
depth
->
n
;
count
=
depth
->
n
;
if
(
count
>
4096
||
count
<=
0
)
if
(
count
>
4096
||
count
<=
0
)
return
-
EMSGSIZE
;
return
DRM_ERR
(
EMSGSIZE
)
;
xbuf_size
=
count
*
sizeof
(
*
x
);
xbuf_size
=
count
*
sizeof
(
*
x
);
ybuf_size
=
count
*
sizeof
(
*
y
);
ybuf_size
=
count
*
sizeof
(
*
y
);
...
@@ -1131,7 +1131,7 @@ static int r128_cce_dispatch_read_span( drm_device_t *dev,
...
@@ -1131,7 +1131,7 @@ static int r128_cce_dispatch_read_span( drm_device_t *dev,
count
=
depth
->
n
;
count
=
depth
->
n
;
if
(
count
>
4096
||
count
<=
0
)
if
(
count
>
4096
||
count
<=
0
)
return
-
EMSGSIZE
;
return
DRM_ERR
(
EMSGSIZE
)
;
if
(
DRM_COPY_FROM_USER
(
&
x
,
depth
->
x
,
sizeof
(
x
)
)
)
{
if
(
DRM_COPY_FROM_USER
(
&
x
,
depth
->
x
,
sizeof
(
x
)
)
)
{
return
DRM_ERR
(
EFAULT
);
return
DRM_ERR
(
EFAULT
);
...
@@ -1176,7 +1176,7 @@ static int r128_cce_dispatch_read_pixels( drm_device_t *dev,
...
@@ -1176,7 +1176,7 @@ static int r128_cce_dispatch_read_pixels( drm_device_t *dev,
count
=
depth
->
n
;
count
=
depth
->
n
;
if
(
count
>
4096
||
count
<=
0
)
if
(
count
>
4096
||
count
<=
0
)
return
-
EMSGSIZE
;
return
DRM_ERR
(
EMSGSIZE
)
;
if
(
count
>
dev_priv
->
depth_pitch
)
{
if
(
count
>
dev_priv
->
depth_pitch
)
{
count
=
dev_priv
->
depth_pitch
;
count
=
dev_priv
->
depth_pitch
;
...
...
drivers/char/drm/radeon_mem.c
View file @
de801ff8
...
@@ -137,12 +137,12 @@ static int init_heap(struct mem_block **heap, int start, int size)
...
@@ -137,12 +137,12 @@ static int init_heap(struct mem_block **heap, int start, int size)
struct
mem_block
*
blocks
=
DRM_MALLOC
(
sizeof
(
*
blocks
));
struct
mem_block
*
blocks
=
DRM_MALLOC
(
sizeof
(
*
blocks
));
if
(
!
blocks
)
if
(
!
blocks
)
return
-
ENOMEM
;
return
DRM_ERR
(
ENOMEM
)
;
*
heap
=
DRM_MALLOC
(
sizeof
(
**
heap
));
*
heap
=
DRM_MALLOC
(
sizeof
(
**
heap
));
if
(
!*
heap
)
{
if
(
!*
heap
)
{
DRM_FREE
(
blocks
,
sizeof
(
*
blocks
)
);
DRM_FREE
(
blocks
,
sizeof
(
*
blocks
)
);
return
-
ENOMEM
;
return
DRM_ERR
(
ENOMEM
)
;
}
}
blocks
->
start
=
start
;
blocks
->
start
=
start
;
...
...
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