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:
764d6ca
)
gpu: pvr: Check OSAllocMem return value.
author
Janusz Sobczak
<janusz.sobczak@imgtec.com>
Mon, 9 Aug 2010 11:22:22 +0000
(13:22 +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/hash.c
patch
|
blob
|
history
diff --git
a/pvr/hash.c
b/pvr/hash.c
index
53593a6
..
56eacb7
100644
(file)
--- a/
pvr/hash.c
+++ b/
pvr/hash.c
@@
-155,10
+155,9
@@
static IMG_BOOL _Resize(struct HASH_TABLE *pHash, u32 uNewSize)
"HASH_Resize: oldsize=0x%x newsize=0x%x count=0x%x",
pHash->uSize, uNewSize, pHash->uCount);
- OSAllocMem(PVRSRV_PAGEABLE_SELECT,
+
if (
OSAllocMem(PVRSRV_PAGEABLE_SELECT,
sizeof(struct BUCKET *) * uNewSize,
- (void **) &ppNewTable, NULL);
- if (ppNewTable == NULL)
+ (void **) &ppNewTable, NULL) != PVRSRV_OK)
return IMG_FALSE;
for (uIndex = 0; uIndex < uNewSize; uIndex++)