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:
a0b6689
)
gpu: pvr: fix PVRSRVWrapExtMemoryKM for user provided physical pages
author
Imre Deak
<imre.deak@nokia.com>
Tue, 29 Mar 2011 17:26:54 +0000
(20:26 +0300)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 20 May 2012 18:43:04 +0000
(21:43 +0300)
Reported-by: Coverity
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
pvr/devicemem.c
patch
|
blob
|
history
diff --git
a/pvr/devicemem.c
b/pvr/devicemem.c
index
881cf24
..
eb57ea3
100644
(file)
--- a/
pvr/devicemem.c
+++ b/
pvr/devicemem.c
@@
-713,7
+713,7
@@
enum PVRSRV_ERROR PVRSRVWrapExtMemoryKM(void *hDevCookie,
psDeviceNode = (struct PVRSRV_DEVICE_NODE *)hDevCookie;
PVR_ASSERT(psDeviceNode != NULL);
- if (
psDeviceNode == NULL
) {
+ if (
!psDeviceNode || (!pvLinAddr && !psExtSysPAddr)
) {
PVR_DPF(PVR_DBG_ERROR,
"PVRSRVWrapExtMemoryKM: invalid parameter");
return PVRSRV_ERROR_INVALID_PARAMS;