Graphics: Fix a NULL issue in PVRSRVInsertCommandKM
authorgwang23 <gang.a.wang@intel.com>
Thu, 17 May 2012 02:58:48 +0000 (10:58 +0800)
committerbuildbot <buildbot@intel.com>
Mon, 21 May 2012 07:48:01 +0000 (00:48 -0700)
commit4f15cf8534262dd82e12936fae027f8c7383d1f6
tree988ac093ac9597d3cbb1c342a135e205c20c1322
parent0d5206f0c24ef08891b04091c6de996b7c05fe3a
Graphics: Fix a NULL issue in PVRSRVInsertCommandKM

BZ: 35113

In the normal path, the psSwapChain->ppsLastSyncInfos[j] would not
be NULL. But in some error exit path, for example, PVRSRVGetQueueSpaceKM
failed, the psSwapChain->ppsLastSyncInfos[j] may be NULL.

Need to filter out the NULL in psSwapChain->ppsLastSyncInfos.

Change-Id: Ieba6c3659c77f3341f8ddf8003a0f10a13b772fd
Signed-off-by: gwang23 <gang.a.wang@intel.com>
Reviewed-on: http://android.intel.com:8080/49132
Reviewed-by: Tu, Yun <yun.tu@intel.com>
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: Hu, Austin <austin.hu@intel.com>
Tested-by: Tong, BoX <box.tong@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/pvr/services4/srvkm/common/deviceclass.c