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
838f6fe7
Commit
838f6fe7
authored
Aug 05, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50-/fb: use dma_mapping_error() to check dma_map_page() result
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9cba5efa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c
drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c
+2
-2
drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/core/subdev/fb/nv50.c
View file @
838f6fe7
...
...
@@ -253,8 +253,8 @@ nv50_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
r100c08
=
dma_map_page
(
nv_device_base
(
device
),
priv
->
r100c08_page
,
0
,
PAGE_SIZE
,
DMA_BIDIRECTIONAL
);
if
(
!
priv
->
r100c08
)
nv_warn
(
priv
,
"failed 0x100c08 page map
\n
"
)
;
if
(
dma_mapping_error
(
nv_device_base
(
device
),
priv
->
r100c08
)
)
return
-
EFAULT
;
}
else
{
nv_warn
(
priv
,
"failed 0x100c08 page alloc
\n
"
);
}
...
...
drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c
View file @
838f6fe7
...
...
@@ -97,7 +97,7 @@ nvc0_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
priv
->
r100c10
=
dma_map_page
(
nv_device_base
(
device
),
priv
->
r100c10_page
,
0
,
PAGE_SIZE
,
DMA_BIDIRECTIONAL
);
if
(
!
priv
->
r100c10
)
if
(
dma_mapping_error
(
nv_device_base
(
device
),
priv
->
r100c10
)
)
return
-
EFAULT
;
}
...
...
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