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:
8716a57
)
gpu: pvr: fix error path in PVRSRVRegisterBCDeviceKM
author
Imre Deak
<imre.deak@nokia.com>
Tue, 29 Mar 2011 17:18:27 +0000
(20:18 +0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 20 May 2012 18:43:04 +0000
(21:43 +0300)
Fixing a free with incorrect size and converting another one to use
free(p, sizeof(*p)) instead of free(p, sizeof(typeof(*p)).
Reported-by: Coverity
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
pvr/deviceclass.c
patch
|
blob
|
history
diff --git
a/pvr/deviceclass.c
b/pvr/deviceclass.c
index
c5374e5
..
88dd6e8
100644
(file)
--- a/
pvr/deviceclass.c
+++ b/
pvr/deviceclass.c
@@
-355,11
+355,10
@@
ErrorExit:
if (psBCInfo->psFuncTable)
OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP,
- sizeof(
struct PVRSRV_BC_SRV2BUFFER_KMJTABLE *)
,
-
psBCInfo->psFuncTable,
NULL);
+ sizeof(
*psBCInfo->psFuncTable), psBCInfo->psFuncTable
,
+ NULL);
- OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP,
- sizeof(struct PVRSRV_BUFFERCLASS_INFO), psBCInfo, NULL);
+ OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(*psBCInfo), psBCInfo, NULL);
return PVRSRV_ERROR_OUT_OF_MEMORY;
}