mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
Driver Changes:
- Fix a NULL pointer deref (Everest K.C.) -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRskUM7w1oG5rx2IZO4FpNVCsYGvwUCZzcrtwAKCRC4FpNVCsYG vzKfAQCppCPMUlPHb0oyPN3p1rKDr4KObLrugAdZZiqNvUppRwEAq+6dl2BvxJ6u CR3bhKQO00L8gQwiWdf10RbwVKx9gQ0= =bKCp -----END PGP SIGNATURE----- Merge tag 'drm-xe-next-fixes-2024-11-15' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-next Driver Changes: - Fix a NULL pointer deref (Everest K.C.) Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Hellstrom <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/ZzcsMT_FEqBE0cAW@fedora
This commit is contained in:
commit
a163b89507
|
|
@ -1531,7 +1531,7 @@ read_reg_to_node(struct xe_hw_engine *hwe, const struct __guc_mmio_reg_descr_gro
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!list || list->num_regs == 0)
|
||||
if (!list || !list->list || list->num_regs == 0)
|
||||
return;
|
||||
|
||||
if (!regs)
|
||||
|
|
@ -1541,9 +1541,6 @@ read_reg_to_node(struct xe_hw_engine *hwe, const struct __guc_mmio_reg_descr_gro
|
|||
struct __guc_mmio_reg_descr desc = list->list[i];
|
||||
u32 value;
|
||||
|
||||
if (!list->list)
|
||||
return;
|
||||
|
||||
if (list->type == GUC_STATE_CAPTURE_TYPE_ENGINE_INSTANCE) {
|
||||
value = xe_hw_engine_mmio_read32(hwe, desc.reg);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user