artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2741913
)
drm/amdgpu: Fix amdgpu_ras_eeprom_init()
author
jsg
<jsg@openbsd.org>
Mon, 27 Sep 2021 03:20:21 +0000
(
03:20
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 27 Sep 2021 03:20:21 +0000
(
03:20
+0000)
From Luben Tuikov
10a135969fd7419695c003ddb67ef8a7820a808b
in linux 5.10.y/5.10.67
dce4400e6516d18313d23de45b5be8a18980b00e
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_ras_eeprom.c
patch
|
blob
|
history
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
c3f707d
..
875a668
100644
(file)
--- 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) /