git.openpandora.org
/
sgx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb438e3
)
gpu: pvr: Check OSAllocMem return value.
author
Janusz Sobczak
<janusz.sobczak@imgtec.com>
Mon, 9 Aug 2010 11:23:07 +0000
(13:23 +0200)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 20 May 2012 18:09:42 +0000
(21:09 +0300)
Signed-off-by: Janusz Sobczak <janusz.sobczak@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/mmu.c
patch
|
blob
|
history
diff --git
a/pvr/mmu.c
b/pvr/mmu.c
index
728e735
..
d93e9ff
100644
(file)
--- a/
pvr/mmu.c
+++ b/
pvr/mmu.c
@@
-815,9
+815,9
@@
struct MMU_HEAP *MMU_Create(struct MMU_CONTEXT *psMMUContext,
return NULL;
}
- OSAllocMem(PVRSRV_OS_PAGEABLE_HEAP,
- sizeof(struct MMU_HEAP), (void **)&pMMUHeap, NULL)
;
-
if (pMMUHeap == NULL
) {
+
if (
OSAllocMem(PVRSRV_OS_PAGEABLE_HEAP,
+ sizeof(struct MMU_HEAP), (void **)&pMMUHeap, NULL)
+
!= PVRSRV_OK
) {
PVR_DPF(PVR_DBG_ERROR,
"MMU_Create: ERROR call to OSAllocMem failed");
return NULL;