Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe-x86
Commits
838f6fe7
Commit
838f6fe7
authored
Aug 05, 2014
by
Ben Skeggs
Browse files
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
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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