static void
increase_read_ops_pending(PVRSRV_KERNEL_MEM_INFO *psKernelMemInfo)
{
- psKernelMemInfo->psKernelSyncInfo->psSyncData->ui32ReadOpsPending++;
+ if (psKernelMemInfo)
+ psKernelMemInfo->psKernelSyncInfo
+ ->psSyncData->ui32ReadOpsPending++;
}
static void
increase_read_ops_completed(PVRSRV_KERNEL_MEM_INFO *psKernelMemInfo)
{
- psKernelMemInfo->psKernelSyncInfo->psSyncData->ui32ReadOpsComplete++;
+ if (psKernelMemInfo)
+ psKernelMemInfo->psKernelSyncInfo
+ ->psSyncData->ui32ReadOpsComplete++;
}
static PVRSRV_KERNEL_MEM_INFO *
crtc->fb = fb;
- BUG_ON(!current_fb_mem_info);
new_pending_flip->old_mem_info = current_fb_mem_info;
increase_read_ops_pending(current_fb_mem_info);