From: jsg Date: Mon, 27 Sep 2021 03:20:21 +0000 (+0000) Subject: drm/amdgpu: Fix amdgpu_ras_eeprom_init() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4eb65af2cfc855faf6dc590c2616acd1cfd1b1f4;p=openbsd drm/amdgpu: Fix amdgpu_ras_eeprom_init() From Luben Tuikov 10a135969fd7419695c003ddb67ef8a7820a808b in linux 5.10.y/5.10.67 dce4400e6516d18313d23de45b5be8a18980b00e in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c index c3f707d972b..875a668abb8 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c @@ -309,7 +309,7 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control, return ret; } - __decode_table_header_from_buff(hdr, &buff[2]); + __decode_table_header_from_buff(hdr, buff); if (hdr->header == EEPROM_TABLE_HDR_VAL) { control->num_recs = (hdr->tbl_size - EEPROM_TABLE_HEADER_SIZE) /