Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_kernel_samsung_matisse
Commits
75ef47e4
Commit
75ef47e4
authored
12 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
12 years ago
Browse files
Options
Download
Plain Diff
Merge "gpu: ion: Return correct error code at alloc fail"
parents
acd616a8
00fc192c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/gpu/ion/ion_iommu_heap.c
drivers/gpu/ion/ion_iommu_heap.c
+3
-1
No files found.
drivers/gpu/ion/ion_iommu_heap.c
View file @
75ef47e4
...
...
@@ -82,8 +82,10 @@ static int ion_iommu_heap_allocate(struct ion_heap *heap,
for_each_sg
(
table
->
sgl
,
sg
,
table
->
nents
,
i
)
{
data
->
pages
[
i
]
=
alloc_page
(
GFP_KERNEL
|
__GFP_HIGHMEM
);
if
(
!
data
->
pages
[
i
])
if
(
!
data
->
pages
[
i
])
{
ret
=
-
ENOMEM
;
goto
err3
;
}
sg_set_page
(
sg
,
data
->
pages
[
i
],
PAGE_SIZE
,
0
);
sg_dma_address
(
sg
)
=
sg_phys
(
sg
);
...
...
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