mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
Driver Changes:
- One copy/paste mistake fix. - One error path fix causing an error pointer dereference. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRskUM7w1oG5rx2IZO4FpNVCsYGvwUCZoZ+TQAKCRC4FpNVCsYG v0JrAP0T/qHlTXn+Si7xvA65zcfg4DGA3zSqQbwkxjIDrH1qcAEAmAsUsJztUTsl 5NpkNo2dHACMFynbcK9RLO6JdFHrgAI= =cdf6 -----END PGP SIGNATURE----- Merge tag 'drm-xe-fixes-2024-07-04' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes Driver Changes: - One copy/paste mistake fix. - One error path fix causing an error pointer dereference. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> From: Thomas Hellstrom <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/ZoZ-wD66lgjiNh72@fedora
This commit is contained in:
commit
cfbce3bcb2
@ -342,7 +342,7 @@ static void init_steering_oaddrm(struct xe_gt *gt)
|
||||
else
|
||||
gt->steering[OADDRM].group_target = 1;
|
||||
|
||||
gt->steering[DSS].instance_target = 0; /* unused */
|
||||
gt->steering[OADDRM].instance_target = 0; /* unused */
|
||||
}
|
||||
|
||||
static void init_steering_sqidi_psmi(struct xe_gt *gt)
|
||||
@ -357,8 +357,8 @@ static void init_steering_sqidi_psmi(struct xe_gt *gt)
|
||||
|
||||
static void init_steering_inst0(struct xe_gt *gt)
|
||||
{
|
||||
gt->steering[DSS].group_target = 0; /* unused */
|
||||
gt->steering[DSS].instance_target = 0; /* unused */
|
||||
gt->steering[INSTANCE0].group_target = 0; /* unused */
|
||||
gt->steering[INSTANCE0].instance_target = 0; /* unused */
|
||||
}
|
||||
|
||||
static const struct {
|
||||
|
@ -1334,7 +1334,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
|
||||
GFP_KERNEL, true, 0);
|
||||
if (IS_ERR(sa_bo)) {
|
||||
err = PTR_ERR(sa_bo);
|
||||
goto err;
|
||||
goto err_bb;
|
||||
}
|
||||
|
||||
ppgtt_ofs = NUM_KERNEL_PDE +
|
||||
@ -1385,7 +1385,7 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
|
||||
update_idx);
|
||||
if (IS_ERR(job)) {
|
||||
err = PTR_ERR(job);
|
||||
goto err_bb;
|
||||
goto err_sa;
|
||||
}
|
||||
|
||||
/* Wait on BO move */
|
||||
@ -1434,12 +1434,12 @@ xe_migrate_update_pgtables(struct xe_migrate *m,
|
||||
|
||||
err_job:
|
||||
xe_sched_job_put(job);
|
||||
err_sa:
|
||||
drm_suballoc_free(sa_bo, NULL);
|
||||
err_bb:
|
||||
if (!q)
|
||||
mutex_unlock(&m->job_mutex);
|
||||
xe_bb_free(bb, NULL);
|
||||
err:
|
||||
drm_suballoc_free(sa_bo, NULL);
|
||||
return ERR_PTR(err);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user