We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1d7f02 commit 517feecCopy full SHA for 517feec
drivers/gpu/drm/msm/msm_gpu.c
@@ -376,7 +376,7 @@ static void msm_gpu_crashstate_capture(struct msm_gpu *gpu,
376
state->bos = kcalloc(nr,
377
sizeof(struct msm_gpu_state_bo), GFP_KERNEL);
378
379
- for (i = 0; i < submit->nr_bos; i++) {
+ for (i = 0; state->bos && i < submit->nr_bos; i++) {
380
if (should_dump(submit, i)) {
381
msm_gpu_crashstate_get_bo(state, submit->bos[i].obj,
382
submit->bos[i].iova, submit->bos[i].flags);
0 commit comments