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 7835303 commit d50f5a1Copy full SHA for d50f5a1
drivers/gpu/drm/i915/gt/selftest_lrc.c
@@ -176,8 +176,8 @@ static int live_lrc_layout(void *arg)
176
continue;
177
178
hw = shmem_pin_map(engine->default_state);
179
- if (IS_ERR(hw)) {
180
- err = PTR_ERR(hw);
+ if (!hw) {
+ err = -ENOMEM;
181
break;
182
}
183
hw += LRC_STATE_OFFSET / sizeof(*hw);
@@ -365,8 +365,8 @@ static int live_lrc_fixed(void *arg)
365
366
367
368
369
370
371
372
0 commit comments