SysAcquireData() could theoretically fail.
This patch adds missing return value check in SGXReadDiffCountersKM().
Signed-off-by: Janusz Sobczak <janusz.sobczak@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
psDevInfo->ui32HWGroupRequested = ui32New;
psDevInfo->ui32HWReset |= ui32NewReset;
- SysAcquireData(&psSysData);
+ if (SysAcquireData(&psSysData) != PVRSRV_OK)
+ return PVRSRV_ERROR_GENERIC;
psPowerDevice = psSysData->psPowerDeviceList;
while (psPowerDevice) {